@ecp.eth/sdk / comments / PostCommentWithSigParams
Type Alias: PostCommentWithSigParams
type PostCommentWithSigParams = {
appSignature: Hex;
authorSignature?: Hex;
comment: CommentInputData;
commentsAddress?: Hex;
fee?: bigint;
writeContract: ContractWriteFunctions["postCommentWithSig"];
};Defined in: packages/sdk/src/comments/comment.ts:120
Properties
appSignature
appSignature: Hex;Defined in: packages/sdk/src/comments/comment.ts:130
The app signature
authorSignature?
optional authorSignature: Hex;Defined in: packages/sdk/src/comments/comment.ts:134
The author signature. Necessary if the author hasn't approved the signer to post comments on their behalf.
comment
comment: CommentInputData;Defined in: packages/sdk/src/comments/comment.ts:126
The comment data
You can obtain this by using the createCommentData() function
commentsAddress?
optional commentsAddress: Hex;Defined in: packages/sdk/src/comments/comment.ts:143
The address of the comments contract
Default
COMMENT_MANAGER_ADDRESSfee?
optional fee: bigint;Defined in: packages/sdk/src/comments/comment.ts:138
The fee for the comment
writeContract
writeContract: ContractWriteFunctions["postCommentWithSig"];Defined in: packages/sdk/src/comments/comment.ts:147
The write contract function