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