Skip to content

@ecp.eth/sdk


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

Type Alias: ChannelTransferredEvent

type ChannelTransferredEvent = {
  blockNumber: bigint;
  chainId: number;
  data: {
     channel: {
        id: bigint;
        owner: `0x${string}`;
        updatedAt: Date;
     };
     from: `0x${string}`;
     to: `0x${string}`;
  };
  event: "channel:transferred";
  logIndex: number;
  txHash: `0x${string}`;
  uid: string;
  version: 1;
};

Defined in: packages/sdk/src/indexer/webhooks/schemas/channel.ts:271

An event sent to webhook when a channel is transferred.

Type declaration

blockNumber

blockNumber: bigint = StringBigintSchema;

Block number. On wire it is a stringified bigint.

chainId

chainId: number;

Chain ID

data

data: {
  channel: {
     id: bigint;
     owner: `0x${string}`;
     updatedAt: Date;
  };
  from: `0x${string}`;
  to: `0x${string}`;
};

Data of the event

data.channel

channel: {
  id: bigint;
  owner: `0x${string}`;
  updatedAt: Date;
};

Updated channel data

data.channel.id

id: bigint = StringBigintSchema;

ID of the channel

data.channel.owner

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

Owner address

data.channel.updatedAt

updatedAt: Date = ISO8601DateSchema;

Updated at date

data.from

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

From address

data.to

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

To address

event

event: "channel:transferred";

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