Skip to content

@ecp.eth/sdk


@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:868

Fetch a single channel by ID from the Indexer API

Parameters

options

FetchChannelOptions

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