Skip to content

@ecp.eth/sdk


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

Type Alias: ApprovalRemovedEvent

type ApprovalRemovedEvent = {
  blockNumber: bigint;
  chainId: number;
  data: {
     approval: {
        id: string;
     };
  };
  event: "approval:removed";
  logIndex: number;
  txHash: `0x${string}`;
  uid: string;
  version: 1;
};

Defined in: packages/sdk/src/indexer/webhooks/schemas/approval.ts:92

An event sent to webhook when an approval is removed

Type declaration

blockNumber

blockNumber: bigint = StringBigintSchema;

Block number. On wire it is a stringified bigint.

chainId

chainId: number;

Chain ID

data

data: {
  approval: {
     id: string;
  };
};

Data of the event

data.approval

approval: {
  id: string;
};

Approval data

data.approval.id

id: string;

ID of the approval that was removed

event

event: "approval:removed";

Event type

logIndex

logIndex: number;

Log index

txHash

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

Transaction hash

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