Skip to content

@ecp.eth/sdk


@ecp.eth/sdk / indexer / ReportCommentOptions

Type Alias: ReportCommentOptions

type ReportCommentOptions = {
  apiUrl?: string;
  chainId: number;
  commentId: Hex;
  message?: string;
  reportee: Hex;
  retries?: number;
  signal?: AbortSignal;
  signature: Hex;
};

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

The options for reportComment()

Properties

apiUrl?

optional apiUrl: string;

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

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

Default

"https://api.ethcomments.xyz"

chainId

chainId: number;

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

The chain ID where the comment was posted


commentId

commentId: Hex;

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

The ID of the comment to report


message?

optional message: string;

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

Optional message explaining the reason for the report


reportee

reportee: Hex;

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

The address of the user reporting the comment


retries?

optional retries: number;

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

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

Default

3

signal?

optional signal: AbortSignal;

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


signature

signature: Hex;

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

The signature of the report typed data