@ecp.eth/sdk / comments / createCommentData
Function: createCommentData()
function createCommentData(__namedParameters):
| {
app: `0x${string}`;
author: `0x${string}`;
channelId: bigint;
commentType: number;
content: string;
deadline: bigint;
metadata: {
key: `0x${string}`;
value: `0x${string}`;
}[];
parentId: `0x${string}`;
targetUri: string;
}
| {
app: `0x${string}`;
author: `0x${string}`;
channelId: bigint;
commentType: number;
content: string;
deadline: bigint;
metadata: {
key: `0x${string}`;
value: `0x${string}`;
}[];
parentId: `0x${string}`;
targetUri: "";
};
Defined in: packages/sdk/src/comments/comment.ts:560
Create the data structure of a comment
Parameters
__namedParameters
Returns
| {
app
: `0x${string}`
;
author
: `0x${string}`
;
channelId
: bigint
;
commentType
: number
;
content
: string
;
deadline
: bigint
;
metadata
: {
key
: `0x${string}`
;
value
: `0x${string}`
;
}[];
parentId
: `0x${string}`
;
targetUri
: string
;
}
| {
app
: `0x${string}`
;
author
: `0x${string}`
;
channelId
: bigint
;
commentType
: number
;
content
: string
;
deadline
: bigint
;
metadata
: {
key
: `0x${string}`
;
value
: `0x${string}`
;
}[];
parentId
: `0x${string}`
;
targetUri
: ""
;
}
CommentInputData The data structure of a comment