Skip to content

@ecp.eth/sdk


@ecp.eth/sdk / comments/react

comments/react

Ethereum Comments Protocol SDK Comments for React React hooks and components for managing comments and approvals

Hooks

FunctionDescription
useGaslessTransactionA hook for repeat gasless transaction pattern

Other

NameDescription
UseAddApprovalOptions-
UseAddApprovalParams-
UseAddApprovalResult-
UseAddApprovalWithSigOptions-
UseAddApprovalWithSigParams-
UseAddApprovalWithSigResult-
UseDeleteCommentOptions-
UseDeleteCommentParams-
UseDeleteCommentResult-
UseDeleteCommentWithSigOptions-
UseDeleteCommentWithSigParams-
UseDeleteCommentWithSigResult-
UseEditCommentOptions-
UseEditCommentParams-
UseEditCommentResult-
UseEditCommentWithSigOptions-
UseEditCommentWithSigParams-
UseEditCommentWithSigResult-
UseGetChannelManagerOptions-
UseGetChannelManagerParams-
UseGetChannelManagerResult-
UseGetCommentIdOptions-
UseGetCommentIdParams-
UseGetCommentIdResult-
UseGetCommentOptions-
UseGetCommentParams-
UseGetCommentResult-
UseGetContractNameOptions-
UseGetContractNameParams-
UseGetContractNameResult-
UseGetContractVersionOptions-
UseGetContractVersionParams-
UseGetContractVersionResult-
UseGetDeleteCommentHashOptions-
UseGetDeleteCommentHashParams-
UseGetDeleteCommentHashResult-
UseGetDomainSeparatorOptions-
UseGetDomainSeparatorParams-
UseGetDomainSeparatorResult-
UseGetEditCommentHashOptions-
UseGetEditCommentHashParams-
UseGetEditCommentHashResult-
UseIsApprovedOptions-
UseIsApprovedParams-
UseIsApprovedResult-
UsePostCommentOptions-
UsePostCommentParams-
UsePostCommentResult-
UsePostCommentWithSigOptions-
UsePostCommentWithSigParams-
UsePostCommentWithSigResult-
UseRevokeApprovalOptions-
UseRevokeApprovalParams-
UseRevokeApprovalResult-
UseRevokeApprovalWithSigOptions-
UseRevokeApprovalWithSigParams-
UseRevokeApprovalWithSigResult-
UseUpdateChannelContractOptions-
UseUpdateChannelContractParams-
UseUpdateChannelContractResult-
useAddApprovalReact hook to approve an app signer directly as author
useAddApprovalWithSigReact hook to add an app signer approval with signature verification
useDeleteCommentReact hook to delete a comment as an author
useDeleteCommentWithSigReact hook to delete a comment with app signature verification
useEditCommentReact hook to edit a comment as an author
useEditCommentWithSigReact hook to edit a comment with app signature verification
useGetChannelManagerReact hook to get the channel manager contract address
useGetCommentReact hook to get a comment by ID
useGetCommentIdReact hook to get the ID for a comment before it is posted
useGetContractNameReact hook to get the contract name
useGetContractVersionReact hook to get the contract version
useGetDeleteCommentHashReact hook to get the hash for deleting a comment
useGetDomainSeparatorReact hook to get the EIP-712 domain separator
useGetEditCommentHashReact hook to get the hash for editing a comment
useGetNonceReact hook to get the nonce for the author and app signer
useIsApprovedReact hook to check if an app signer is approved for an author
usePostCommentReact hook to post a comment as an author
usePostCommentWithSigReact hook to post a comment with author signature verification
useRevokeApprovalReact hook to revoke an app signer approval directly as author
useRevokeApprovalWithSigReact hook to remove an app signer approval with signature verification
useUpdateChannelContractReact hook to update the channel manager contract address (only owner)