Skip to content

Comments Protocol Contract

The contracts are currently only deployed on the Base Sepolia as we decide where to deploy the production contracts.

NetworkContract AddressContract
Base Mainnet0xb262C9278fBcac384Ef59Fc49E24d800152E19b1Base Mainnet
Base Sepolia0xb262C9278fBcac384Ef59Fc49E24d800152E19b1Base Sepolia

Importing ABIs

You can import the contract ABIs directly from the SDK:

import { CommentManagerABI, ChannelManagerABI } from "@ecp.eth/sdk/abis";

Comment Manager Contract Functions

FunctionDescriptionNote
postCommentPost a comment with app signature verificationRequires author to be msg.sender
postCommentWithSigPost a comment with both author and app signaturesAllows posting on behalf of author with signatures
editCommentEdit a comment with app signature verificationRequires author to be msg.sender
editCommentWithSigEdit a comment with both author and app signaturesAllows editing on behalf of author with signatures
deleteCommentDelete a comment when called by the author⚠️ Deleted data may still be traceable or recoverable onchain
deleteCommentWithSigDelete a comment with signature verification⚠️ Deleted data may still be traceable or recoverable onchain
addApprovalApprove an app signer directlyCalled by the author
addApprovalWithSigApprove an app signer with signatureAllows approving on behalf of author with signature
revokeApprovalRemove an app signer approval directlyCalled by the author
removeApprovalWithSigRemove an app signer approval with signatureAllows revoking on behalf of author with signature
getCommentGet a comment by ID
getCommentMetadataKeysGet the metadata keys for a comment
getCommentMetadataValueGet the metadata value for a comment
.........

For detailed information about all functions, events, and structs, please refer to the Contract ABI Documentation.

Channel Manager Contract Details

NetworkContract AddressContract
Base Mainnet0xa1043eDBE1b0Ffe6C12a2b8ed5AfD7AcB2DEA396Base Mainnet
Base Sepolia0xa1043eDBE1b0Ffe6C12a2b8ed5AfD7AcB2DEA396Base Sepolia

ChannelManager Contract Functions

FunctionDescriptionNote
createChannelCreates a new channel with specified name, description, metadata, and optional hookRequires channel creation fee
updateChannelUpdates an existing channel's name, description, and metadataOnly callable by channel owner
setHookSets or updates a hook contract for a channelOnly callable by channel owner
getChannelRetrieves channel information including name, description, metadata, and hook address
channelExistsChecks if a channel ID exists
setBaseURISets the base URI for token metadataOnly callable by contract owner
ownerOfGets the owner address of a channel

For detailed information about all functions, events, and structs, please refer to the Contract ABI Documentation.