Skip to content

@ecp.eth/sdk


@ecp.eth/sdk / indexer / FetchCommentRepliesOptions

Type Alias: FetchCommentRepliesOptions

type FetchCommentRepliesOptions = {
  apiUrl?: string;
  app?: Hex;
  channelId?: bigint;
  commentId: Hex;
  commentType?: string;
  cursor?: Hex;
  limit?: number;
  mode?: "nested" | "flat";
  retries?: number;
  signal?: AbortSignal;
  sort?: "asc" | "desc";
  viewer?: Hex;
};

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

The options for fetchCommentReplies()

Properties

apiUrl?

optional apiUrl: string;

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

URL on which /api/comments/$commentId/replies endpoint will be called

Default

"https://api.ethcomments.xyz"

app?

optional app: Hex;

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

Filters to only comments sent using this app signer key.


channelId?

optional channelId: bigint;

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

Filter replies by channel ID


commentId

commentId: Hex;

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

The ID of the comment to fetch replies for


commentType?

optional commentType: string;

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

Filter replies by comment type


cursor?

optional cursor: Hex;

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

The cursor to fetch comments from


limit?

optional limit: number;

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

Default

50

mode?

optional mode: "nested" | "flat";

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

The mode to fetch replies in by default it returns only the first level of replies. If flat is used it will return all replies sorted by timestamp in descending order.

Default

"nested"

retries?

optional retries: number;

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

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:238


sort?

optional sort: "asc" | "desc";

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

Default

"desc"

viewer?

optional viewer: Hex;

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

The viewer's address. This is useful when the content moderation is enabled on the indexer.