Interface AppliedCommentOperation

Applied operation.

interface AppliedCommentOperation {
    block: number;
    op: {
        type: "comment_operation";
        value: {
            author: string;
            body: string;
            json_metadata: string;
            parent_author: string;
            parent_permlink: string;
            permlink: string;
            title: string;
        };
    };
    op_in_trx: number;
    timestamp: string;
    trx_id: string;
    trx_in_block: number;
    virtual_op: number;
}

Hierarchy (view full)

Properties

block: number
op: {
    type: "comment_operation";
    value: {
        author: string;
        body: string;
        json_metadata: string;
        parent_author: string;
        parent_permlink: string;
        permlink: string;
        title: string;
    };
}

Type declaration

  • type: "comment_operation"
  • value: {
        author: string;
        body: string;
        json_metadata: string;
        parent_author: string;
        parent_permlink: string;
        permlink: string;
        title: string;
    }
    • author: string

      author of the post/comment being submitted (account name).

    • body: string

      body of the post/comment being submitted, or diff-match-patch when updating.

    • json_metadata: string

      JSON object string.

    • parent_author: string

      the author that comment is being submitted to, when posting a new blog this is an empty string.

    • parent_permlink: string

      specific post that comment is being submitted to, when posting a new blog this become the category of the post (tags[0]).

    • permlink: string

      unique string identifier for the post, linked to the author of the post.

    • title: string

      human readable title of the post being submitted, this is often blank when commenting.

op_in_trx: number
timestamp: string
trx_id: string
trx_in_block: number
virtual_op: number