Event Structure
Event Payload Format
After verification, events have the following structure:
type EventPayload = {
/** ID of the event record */
id: string;
/** Decoded event log */
event: object;
/** Transaction hash */
transactionHash: string;
/** Block number */
blockNumber: number;
/** Transaction index */
transactionIndex: number;
/** Log index */
logIndex: number;
/** Block timestamp */
blockTimestamp: number;
};
Example Event Data
{
"id": "evt_1234567890",
"event": {
"name": "Transfer",
"args": {
"from": "0x1234567890123456789012345678901234567890",
"to": "0x0987654321098765432109876543210987654321",
"value": "1000000000000000000"
}
},
"transactionHash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
"blockNumber": 12345678,
"transactionIndex": 42,
"logIndex": 7,
"blockTimestamp": 1621234567
}