Skip to content

@ecp.eth/sdk


@ecp.eth/sdk / indexer / FetchChannelOptions

Type Alias: FetchChannelOptions

type FetchChannelOptions = {
  apiUrl?: string;
  channelId: bigint;
  retries?: number;
  signal?: AbortSignal;
};

Defined in: packages/sdk/src/indexer/api.ts:836

The options for fetchChannel()

Properties

apiUrl?

optional apiUrl: string;

Defined in: packages/sdk/src/indexer/api.ts:846

URL on which /api/channels/$channelId endpoint will be called

Default

"https://api.ethcomments.xyz"

channelId

channelId: bigint;

Defined in: packages/sdk/src/indexer/api.ts:840

The ID of the channel to fetch


retries?

optional retries: number;

Defined in: packages/sdk/src/indexer/api.ts:852

Number of times to retry the signing operation in case of failure.

Default

3

signal?

optional signal: AbortSignal;

Defined in: packages/sdk/src/indexer/api.ts:853