Fetch many channels
import { downlinkClient } from './config' const data = await downlinkClient.getAllChannels()
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 }
boolean
false
const data = await downlinkClient.getChannel({ channelAddress: '0x1234567890123456789012345678901234567890', includeTokens: true, ... })
Filters
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" }, } } } )