Check out the sdk quickstart guide for help setting up your client.

Usage

Returns

IChannel[]

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

includeTokens (optional)

  • type: boolean
  • default: false

Include tokens in the response.

const data = await downlinkClient.getChannel({
    channelAddress: '0x1234567890123456789012345678901234567890',
    includeTokens: true,
  ...
})

filters (optional)

  • type: Filters

Filters to apply to the query.

type Filters = {
    where?: GqlVariables
    orderBy?: string
    orderDirection?: string
    pageSize?: number
    skip?: number
}
// Fetch all channels with infinite transport layer type
const data = await downlinkClient.getAllChannels(
    {
        filters: {
            where: {
                transportLayer_: {
                    type: "infinite"
                },
            }
        }
    }
)