@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:52
Properties
appSignature
appSignature: Hex;Defined in: packages/sdk/src/comments/comment.ts:62
The app signature
comment
comment: CommentInputData;Defined in: packages/sdk/src/comments/comment.ts:58
The comment data
You can obtain this by using the createCommentData() function
commentsAddress?
optional commentsAddress: Hex;Defined in: packages/sdk/src/comments/comment.ts:71
The address of the comments contract
Default
COMMENT_MANAGER_ADDRESSfee?
optional fee: bigint;Defined in: packages/sdk/src/comments/comment.ts:66
The fee for the comment
writeContract
writeContract: ContractWriteFunctions["postComment"];Defined in: packages/sdk/src/comments/comment.ts:75
The write contract function