Downlink client
getChannel
Fetch a channel by address
Check out the sdk quickstart guide for help setting up your client.
Usage
Returns
IChannel | undefined
type IChannel = {
id: Address
uri: string
name: string
admin: Address
managers: Address[]
transportLayer: ITransportLayer
creatorLogic: ILogicConfig | null
minterLogic: ILogicConfig | null
fees: IFeeConfig | null
tokens: IToken[]
blockNumber?: bigint
blockTimestamp?: bigint
}
Parameters
channelAddress
- type:
string
The target channel address.
const data = await downlinkClient.getChannel({
channelAddress: '0x1234567890123456789012345678901234567890',
...
})
includeTokens (optional)
- type:
boolean
- default:
false
Include tokens in the response.
const data = await downlinkClient.getChannel({
channelAddress: '0x1234567890123456789012345678901234567890',
includeTokens: true,
...
})