layer1:digital:balance:updated

Webhook Payload Structure

The webhook notification sends a JSON object containing details about the event. Here is the example payloads:

{
  "event": "layer1:digital:balance:updated",
  "timestamp": "2024-06-05T20:40:16.941138099Z",
  "data": {
    "reference": "First Eth Address",
    "address": "0xc4b21fb39aaf5fc07d3cd4420bf3ee74a61642e9",
    "asset": "ETH",
    "funds": [
      {
        "type": "AVAILABLE",
        "balance": "0.00",
        "delta": "0.00"
      },
      {
        "type": "BLOCKCHAIN",
        "balance": "0.20",
        "delta": "0.20"
      },
      {
        "type": "RESERVED",
        "balance": "0.20",
        "delta": "0.20"
      }
    ]
  }
}

Field Descriptions

Below is a detailed explanation of each field in the webhook payload:

FieldDescription
eventThe type of event that triggered the webhook.
timestampThe time when the event occurred in ISO 8601 format.
dataA nested object containing details of the balance update.
data.referenceA unique reference for the crypto address.
data.addressThe crypto address involved in the balance update.
data.assetThe type of cryptocurrency asset.
data.fundsAn array containing details of the fund balances.
data.funds.typeThe type of fund balance [AVAILABLE, BLOCKCHAIN, RESERVED].
data.funds.balanceThe current balance of the fund type.
data.funds.deltaThe change in balance for the fund type.