Skip to content

@ecp.eth/sdk


@ecp.eth/sdk / indexer/webhooks / CommentReactionsUpdatedEvent

Type Alias: CommentReactionsUpdatedEvent

type CommentReactionsUpdatedEvent = {
  data: {
     comment: {
        id: `0x${string}`;
        reactionCounts: Record<string, number>;
     };
  };
  event: "comment:reactions:updated";
  uid: string;
  version: 1;
};

Defined in: packages/sdk/src/indexer/webhooks/schemas/comment.ts:312

An event sent to webhook when a comment reactions are updated.

Type declaration

data

data: {
  comment: {
     id: `0x${string}`;
     reactionCounts: Record<string, number>;
  };
};

Data of the event

data.comment

comment: {
  id: `0x${string}`;
  reactionCounts: Record<string, number>;
};

Updated comment data

data.comment.id

id: `0x${string}` = HexSchema;

ID of the comment

data.comment.reactionCounts

reactionCounts: Record<string, number>;

Reaction counts

event

event: "comment:reactions:updated";

Event type

uid

uid: string;

Unique identifier for the event. You can use it to deduplicate events. In case of retry attempts the id is the same.

version

version: 1;

Version of the event