Skip to content

@ecp.eth/sdk


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

Type Alias: ApprovalExpiredEvent

type ApprovalExpiredEvent = {
  chainId: number;
  data: {
     approval: {
        app: `0x${string}`;
        author: `0x${string}`;
        createdAt: Date;
        expiresAt: Date;
        id: string;
        updatedAt: Date;
     };
  };
  event: "approval:expired";
  uid: string;
  version: 1;
};

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

An event sent to webhook when an approval expires

Type declaration

chainId

chainId: number;

Chain ID where the approval exists

data

data: {
  approval: {
     app: `0x${string}`;
     author: `0x${string}`;
     createdAt: Date;
     expiresAt: Date;
     id: string;
     updatedAt: Date;
  };
};

Data of the event

data.approval

approval: {
  app: `0x${string}`;
  author: `0x${string}`;
  createdAt: Date;
  expiresAt: Date;
  id: string;
  updatedAt: Date;
};

Approval data

data.approval.app

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

App address

data.approval.author

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

Author address of the approval

data.approval.createdAt

createdAt: Date = ISO8601DateSchema;

Created at date. On wire it is a ISO 8601 date and time string.

data.approval.expiresAt

expiresAt: Date = ISO8601DateSchema;

Expires at date. On wire it is a ISO 8601 date and time string.

data.approval.id

id: string;

ID of the approval that expired

data.approval.updatedAt

updatedAt: Date = ISO8601DateSchema;

Updated at date. On wire it is a ISO 8601 date and time string.

event

event: "approval:expired";

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