layer1:crypto:withdrawal:status-change

Webhook Payload Structure

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

{
  "event": "layer1:crypto:withdrawal:status-change",
  "timestamp": "2024-05-01T14:58:57.756642777Z",
  "data": {
    "id": "018f34aa753176e1a746377665057346aa2eadaf62374e3fb43529de7c4be91969",
    "address": {
      "id": "aa2eadaf-6237-4e3f-b435-29de7c4be919",
      "address": "0x2ec9ded3d63d2d9c30b72c31d267e207d7242394",
      "assetPoolId": "e0579d29-987a-440c-b78b-26067b49bc96",
      "network": "ETHEREUM",
      "keyPairId": "a2dabc1a-9b36-40dd-b236-2e542fec155c",
      "reference": "085aa928-01b6-407b-82d8-2b9975cbc250"
    },
    "reference": "28b262d9-1f52-4ee2-9f94-addd9762d23c",
    "status": "CREATED",
    "sources": [
      {
        "address": "0x2ec9ded3d63d2d9c30b72c31d267e207d7242394",
        "amount": "0.000117806730763928"
      },
      {
        "address": "0x2ec9ded3d63d2d9c30b72c31d267e207d7242394",
        "amount": "0.001"
      }
    ],
    "destinations": null,
    "type": "WITHDRAWAL",
    "asset": "ETH",
    "amount": "0.001",
    "hash": null,
    "networkDetail": null,
    "metadata": null,
    "createdAt": "2024-05-01T14:58:57.457Z",
    "updatedAt": "2024-05-01T14:58:57.736442Z"
  }
}
{
  "event": "layer1:crypto:withdrawal:status-change",
  "timestamp": "2024-05-01T14:58:58.491311736Z",
  "data": {
    "id": "018f34aa753176e1a746377665057346aa2eadaf62374e3fb43529de7c4be91966",
    "address": {
      "id": "aa2eadaf-6237-4e3f-b435-29de7c4be919",
      "address": "0x2ec9ded3d63d2d9c30b72c31d267e207d7242394",
      "assetPoolId": "e0579d29-987a-440c-b78b-26067b49bc96",
      "network": "ETHEREUM",
      "keyPairId": "a2dabc1a-9b36-40dd-b236-2e542fec155c",
      "reference": "085aa928-01b6-407b-82d8-2b9975cbc250"
    },
    "reference": "28b262d9-1f52-4ee2-9f94-addd9762d23c",
    "status": "SIGNED",
    "sources": [
      {
        "address": "0x2ec9ded3d63d2d9c30b72c31d267e207d7242394",
        "amount": "0.000117806730763928"
      },
      {
        "address": "0x2ec9ded3d63d2d9c30b72c31d267e207d7242394",
        "amount": "0.001"
      }
    ],
    "destinations": null,
    "type": "WITHDRAWAL",
    "asset": "ETH",
    "amount": "0.000117806730763928",
    "hash": null,
    "networkDetail": null,
    "metadata": null,
    "createdAt": "2024-05-01T14:58:57.457Z",
    "updatedAt": "2024-05-01T14:58:58.366656Z"
  }
}
{
  "event": "layer1:crypto:withdrawal:status-change",
  "timestamp": "2024-05-01T14:59:02.359359108Z",
  "data": {
    "id": "018f34aa753176e1a746377665057346aa2eadaf62374e3fb43529de7c4be91969",
    "address": {
      "id": "aa2eadaf-6237-4e3f-b435-29de7c4be919",
      "address": "0x2ec9ded3d63d2d9c30b72c31d267e207d7242394",
      "assetPoolId": "e0579d29-987a-440c-b78b-26067b49bc96",
      "network": "ETHEREUM",
      "keyPairId": "a2dabc1a-9b36-40dd-b236-2e542fec155c",
      "reference": "085aa928-01b6-407b-82d8-2b9975cbc250"
    },
    "reference": "28b262d9-1f52-4ee2-9f94-addd9762d23c",
    "status": "UNCONFIRMED",
    "sources": [
      {
        "address": "0x2ec9ded3d63d2d9c30b72c31d267e207d7242394",
        "amount": "0.000114500286264"
      },
      {
        "address": "0x2ec9ded3d63d2d9c30b72c31d267e207d7242394",
        "amount": "0.001"
      }
    ],
    "destinations": [
      {
        "address": "0xae9e8a1235e1113f936a38492c70fbb4ee297cdb",
        "amount": "0.001"
      }
    ],
    "type": "WITHDRAWAL",
    "asset": "ETH",
    "amount": "0.001",
    "hash": "0xb0d49a30ebe1c84e89a89c52579ae06639dc22d39fd8bb91bfa6dc0130bd09ae",
    "networkDetail": {
      "block": {
        "number": 5815735,
        "timestamp": "2024-05-01T14:59:00Z"
      },
      "fee": {
        "amount": "0.000114500286264",
        "asset": "ETH"
      }
    },
    "metadata": null,
    "createdAt": "2024-05-01T14:58:57.457Z",
    "updatedAt": "2024-05-01T14:59:02.331458Z"
  }
}
{
  "event": "layer1:crypto:withdrawal:status-change",
  "timestamp": "2024-05-01T14:59:50.096614363Z",
  "data": {
    "id": "018f34aa753176e1a746377665057346aa2eadaf62374e3fb43529de7c4be91966",
    "address": {
      "id": "aa2eadaf-6237-4e3f-b435-29de7c4be919",
      "address": "0x2ec9ded3d63d2d9c30b72c31d267e207d7242394",
      "assetPoolId": "e0579d29-987a-440c-b78b-26067b49bc96",
      "network": "ETHEREUM",
      "keyPairId": "a2dabc1a-9b36-40dd-b236-2e542fec155c",
      "reference": "085aa928-01b6-407b-82d8-2b9975cbc250"
    },
    "reference": "28b262d9-1f52-4ee2-9f94-addd9762d23c",
    "status": "CONFIRMED",
    "sources": [
      {
        "address": "0x2ec9ded3d63d2d9c30b72c31d267e207d7242394",
        "amount": "0.000114500286264"
      },
      {
        "address": "0x2ec9ded3d63d2d9c30b72c31d267e207d7242394",
        "amount": "0.001"
      }
    ],
    "destinations": [
      {
        "address": "0xae9e8a1235e1113f936a38492c70fbb4ee297cdb",
        "amount": "0.001"
      }
    ],
    "type": "WITHDRAWAL",
    "asset": "ETH",
    "amount": "0.000114500286264",
    "hash": "0xb0d49a30ebe1c84e89a89c52579ae06639dc22d39fd8bb91bfa6dc0130bd09ae",
    "networkDetail": {
      "block": {
        "number": 5815735,
        "timestamp": "2024-05-01T14:59:00Z"
      },
      "fee": {
        "amount": "0.000114500286264",
        "asset": "ETH"
      }
    },
    "metadata": null,
    "createdAt": "2024-05-01T14:58:57.457Z",
    "updatedAt": "2024-05-01T14:59:50.060099Z"
  }
}

Field Descriptions

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

FieldTypeDescription
eventstringIdentifies the type of event, e.g., "layer1:crypto:withdrawal:status-change"
timestampstringISO 8601 formatted date and time when the event was generated.
dataobjectContains detailed information about the event.
data.idstringUnique identifier for the event.
data.addressobjectDetails of the address involved in the withdrawal.
data.address.idstringUnique identifier for the address object.
data.address.addressstringThe cryptocurrency address involved.
data.address.assetPoolIdstringIdentifier of the asset pool this address belongs to, in GUID format.
data.address.networkstringThe network for the cryptocurrency address.
data.address.keyPairIdstringIdentifier for the key pair associated with the address, in GUID format.
data.address.referencestringA reference identifier linked to the address.
data.referencestringA general reference identifier for the withdrawal.
data.statusstringCurrent status of the withdrawal [CREATED, SIGNED,UNCONFIRMED, CONFIRMED].
data.sources[]arrayArray of source addresses and amounts involved in the withdrawal.
data.destinations[]arrayArray of destination addresses and amounts being transferred.
data.typestringType of transaction.
data.assetstringType of asset involved in the transaction.
data.amountstringTotal amount of the asset being withdrawn.
data.hashstringTransaction hash.
data.networkDetailobjectAdditional details about the network state at the time of the transaction.
data.networkDetail.blockobjectBlock information relevant to the transaction.
data.networkDetail.block.numberstringBlock number associated with the transaction.
data.networkDetail.block.timestampstringTimestamp of the block.
data.networkDetail.feeobjectFee information related to the transaction.
data.networkDetail.fee.amountstringAmount of the fee charged.
data.networkDetail.fee.assetstringAsset type of the fee (e.g., ETH).
data.metadatanullAdditional metadata related to the event (if any).
data.createdAtstringISO 8601 formatted date and time when the data was created.
data.updatedAtstringISO 8601 formatted date and time when the data was last updated.