@ecp.eth/sdk / comments / CreateCommentDataParamsShared
Type Alias: CreateCommentDataParamsShared
type CreateCommentDataParamsShared = {
app: Hex;
author: Hex;
channelId?: bigint;
commentType?: string;
content: string;
deadline?: bigint;
metadata?: JsonObject;
};
Defined in: packages/sdk/src/comments/types.ts:22
The shared parameters for creating a comment
Properties
app
app: Hex;
Defined in: packages/sdk/src/comments/types.ts:46
The address of the app signer
author
author: Hex;
Defined in: packages/sdk/src/comments/types.ts:44
The address of the author of the comment
channelId?
optional channelId: bigint;
Defined in: packages/sdk/src/comments/types.ts:32
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: string;
Defined in: packages/sdk/src/comments/types.ts:40
The type of the comment
If not provided, the default comment type (comment) will be used
Default
"comment"
content
content: string;
Defined in: packages/sdk/src/comments/types.ts:24
The content of the comment
deadline?
optional deadline: bigint;
Defined in: packages/sdk/src/comments/types.ts:48
The deadline of the comment submission in seconds since epoch
metadata?
optional metadata: JsonObject;
Defined in: packages/sdk/src/comments/types.ts:42
Metadata about the comment