@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:112
Properties
appSignature
appSignature: Hex;
Defined in: packages/sdk/src/comments/comment.ts:122
The app signature
authorSignature?
optional authorSignature: Hex;
Defined in: packages/sdk/src/comments/comment.ts:126
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:118
The comment data
You can obtain this by using the createCommentData()
function
commentsAddress?
optional commentsAddress: Hex;
Defined in: packages/sdk/src/comments/comment.ts:135
The address of the comments contract
Default
COMMENT_MANAGER_ADDRESS
fee?
optional fee: bigint;
Defined in: packages/sdk/src/comments/comment.ts:130
The fee for the comment
writeContract
writeContract: ContractWriteFunctions["postCommentWithSig"];
Defined in: packages/sdk/src/comments/comment.ts:139
The write contract function