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:
Field | Type | Description |
---|---|---|
event | string | Identifies the type of event, e.g., "layer1:crypto:withdrawal:status-change" |
timestamp | string | ISO 8601 formatted date and time when the event was generated. |
data | object | Contains detailed information about the event. |
data.id | string | Unique identifier for the event. |
data.address | object | Details of the address involved in the withdrawal. |
data.address.id | string | Unique identifier for the address object. |
data.address.address | string | The cryptocurrency address involved. |
data.address.assetPoolId | string | Identifier of the asset pool this address belongs to, in GUID format. |
data.address.network | string | The network for the cryptocurrency address. |
data.address.keyPairId | string | Identifier for the key pair associated with the address, in GUID format. |
data.address.reference | string | A reference identifier linked to the address. |
data.reference | string | A general reference identifier for the withdrawal. |
data.status | string | Current status of the withdrawal [CREATED, SIGNED,UNCONFIRMED, CONFIRMED]. |
data.sources[] | array | Array of source addresses and amounts involved in the withdrawal. |
data.destinations[] | array | Array of destination addresses and amounts being transferred. |
data.type | string | Type of transaction. |
data.asset | string | Type of asset involved in the transaction. |
data.amount | string | Total amount of the asset being withdrawn. |
data.hash | string | Transaction hash. |
data.networkDetail | object | Additional details about the network state at the time of the transaction. |
data.networkDetail.block | object | Block information relevant to the transaction. |
data.networkDetail.block.number | string | Block number associated with the transaction. |
data.networkDetail.block.timestamp | string | Timestamp of the block. |
data.networkDetail.fee | object | Fee information related to the transaction. |
data.networkDetail.fee.amount | string | Amount of the fee charged. |
data.networkDetail.fee.asset | string | Asset type of the fee (e.g., ETH). |
data.metadata | null | Additional metadata related to the event (if any). |
data.createdAt | string | ISO 8601 formatted date and time when the data was created. |
data.updatedAt | string | ISO 8601 formatted date and time when the data was last updated. |
Updated 8 months ago