@ecp.eth/sdk / indexer / fetchChannel
Function: fetchChannel()
function fetchChannel(options): Promise<{
chainId: number;
createdAt: string;
description: string;
hook: null | `0x${string}`;
id: string;
metadata: {
key: `0x${string}`;
value: `0x${string}`;
}[];
name: string;
owner: `0x${string}`;
updatedAt: string;
}>;Defined in: packages/sdk/src/indexer/api.ts:984
Fetch a single channel by ID from the Indexer API
Parameters
options
Returns
Promise<{
chainId: number;
createdAt: string;
description: string;
hook: null | `0x${string}`;
id: string;
metadata: {
key: `0x${string}`;
value: `0x${string}`;
}[];
name: string;
owner: `0x${string}`;
updatedAt: string;
}>
A promise that resolves to the channel data fetched from the Indexer API
Throws
If there is some request failure.