Skip to content

@ecp.eth/sdk


@ecp.eth/sdk / comments / PostCommentParams

Type Alias: PostCommentParams

type PostCommentParams = {
  appSignature: Hex;
  comment: CommentInputData;
  commentsAddress?: Hex;
  fee?: bigint;
  writeContract: ContractWriteFunctions["postComment"];
};

Defined in: packages/sdk/src/comments/comment.ts:43

Properties

appSignature

appSignature: Hex;

Defined in: packages/sdk/src/comments/comment.ts:53

The app signature


comment

comment: CommentInputData;

Defined in: packages/sdk/src/comments/comment.ts:49

The comment data

You can obtain this by using the createCommentData() function


commentsAddress?

optional commentsAddress: Hex;

Defined in: packages/sdk/src/comments/comment.ts:62

The address of the comments contract

Default

COMMENT_MANAGER_ADDRESS

fee?

optional fee: bigint;

Defined in: packages/sdk/src/comments/comment.ts:57

The fee for the comment


writeContract

writeContract: ContractWriteFunctions["postComment"];

Defined in: packages/sdk/src/comments/comment.ts:66

The write contract function