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