Transaction Event

Overview

The Transaction Event webhook allows your application to receive real-time notifications of transaction results occurring within EQHub blockchain services. When a transaction is executed on the blockchain, EQHub sends a webhook notification containing detailed transaction information directly to your configured endpoint.


Webhook Payload Structure Example

Below is the JSON payload structure you will receive for each transaction event:

{
  "app": "EQHub",
  "data": {
    "to": "Sender Address",
    "from": "Receiver Address",
    "status": 1,
    "is_reorg": 0,
    "block_height": 1,
    "micro_chain_id": 1,
    "transaction_id": 1,
    "transaction_hash": "0x149e3f18a4a1a7ebef16f0d612e0db220b5dc1c7dc3b63dc13be8616fe4f2120"
  },
  "event_name": "TRANSACTION",
  "service_identifier": "TRANSACTION"
}

Payload Field Descriptions

FieldTypeDescription
appStringFixed value: "EQHub"
data.toStringReceiver’s blockchain address (or contract address)
data.fromStringSender’s blockchain address
data.statusIntegerTransaction status (e.g., 1 for success, 0 for failure)
data.is_reorgIntegerIndicates blockchain reorganization (0: No, 1: Yes)
data.block_heightIntegerHeight of the blockchain block containing the transaction
data.micro_chain_idIntegerIdentifier for the microchain involved in the transaction
data.transaction_idIntegerUnique internal identifier for the transaction
data.transaction_hashStringBlockchain hash representing the transaction
event_nameStringFixed value: "TRANSACTION"
service_identifierStringFixed value: "TRANSACTION"

How to Receive Transaction Events

To enable webhook notifications:

  • Set the useWebhook parameter to true when making transaction API requests.
  • Provide a valid webhookUrl. If webhookUrl is not provided, notifications will default to the initially configured URL.

Example:

{
  "useWebhook": true,
  "webhookUrl": "https://your-callback-url.com/webhook"
}