@ecp.eth/sdk / comments / CreateCommentDataParamsShared
Type Alias: CreateCommentDataParamsShared
type CreateCommentDataParamsShared = {
app: Hex;
author: Hex;
channelId?: bigint;
commentType?: number;
content: string;
deadline?: bigint;
metadata?: MetadataEntry[];
};
Defined in: packages/sdk/src/comments/types.ts:49
The shared parameters for creating a comment
Properties
app
app: Hex;
Defined in: packages/sdk/src/comments/types.ts:74
The address of the app signer
author
author: Hex;
Defined in: packages/sdk/src/comments/types.ts:72
The address of the author of the comment
channelId?
optional channelId: bigint;
Defined in: packages/sdk/src/comments/types.ts:59
The ID of the channel the comment is being made in
If not provided, the default channel ID (0) will be used
Default
0n
commentType?
optional commentType: number;
Defined in: packages/sdk/src/comments/types.ts:68
The type of the comment 0 = standard comment, 1 = reaction
If not provided, the default comment type (0) will be used
Default
0
content
content: string;
Defined in: packages/sdk/src/comments/types.ts:51
The content of the comment
deadline?
optional deadline: bigint;
Defined in: packages/sdk/src/comments/types.ts:76
The deadline of the comment submission in seconds since epoch
metadata?
optional metadata: MetadataEntry[];
Defined in: packages/sdk/src/comments/types.ts:70
Metadata about the comment as key-value pairs