Receive notifications
When Layer1 detects a managed balance transaction , the following webhooks types are sent out:
layer1:treasury:notificationsends updates on Treasury events to Slack.layer1:treasury:noticesends updates to custom webpages.
You can receive the following notifications:
- ℹ️ Executing operation(s): TRANSFER
{managedBalanceId1}->{managedBalanceId2}{amount}. - ℹ️
{managedBalanceId}balance adjusted by{amount}. - ℹ️ Treasury transfer(s)
{transactionId}adjusting{managedBalanceId}by{amount}auto-approved. - ⚠️ Treasury transfer(s)
{transactionId}adjusting{managedBalanceId}by{amount}awaiting approval at https://app.layer1.bvnk.com/approvals. - ⚠️ Adjustment of
{amount}for{managedBalanceId1}rejected. - ⚠️ Current balance for
{managedBalanceId1}is{value}, which is below the warning threshold of{WARNING_value}.
The payload always features the same fields. The only distinction is the Source field, which can be one of the following:
CONFIGURATION: Parameters of a Managed Balance are configured via API.FORECAST: Parameters of a Managed Balance are dynamically adjusted by the prediction feature.
- Operation Queued
- Balance Adjustment
- Operation time-out
- Operation Failed
- Approval Requested
- Balance auto-approved
Example Payload
{
"type": "INFO",
"eventType": "TREASURY_OPERATIONS_QUEUED",
"entityCode": "ethereum",
"asset": "usdt",
"balanceAtEventTimestamp": 1500.50,
"message": "Treasury operations queued",
"context": {
"operations": [
{
"amount": 2500.00,
"operationId": "01972084-cd4e-7800-bfb3-8c98eb355e8b",
"source": "bvnk_binance_usdt",
"type": "TRANSFER",
"target": "bvnk_kraken_usdt"
},
{
"amount": 1000.00,
"operationId": "01972084-cd4e-7dbe-bfb5-fd0c6428b38a",
"source": "bvnk_coinbase_usdt",
"type": "TRANSFER",
"target": "bvnk_kraken_usdt"
}
]
}
}
- Low Balance Detected
- No Eligible Source
- Approval Rejected
Example Payload
{
"type": "WARNING",
"eventType": "LOW_BALANCE_DETECTED",
"entityCode": "ethereum",
"asset": "usdt",
"balanceAtEventTimestamp": 1500.50,
"message": "Low balance detected",
"context": {
"thresholds": [
{
"type": "WARNING",
"value": 2000.00,
"source": "CONFIGURATION"
},
{
"type": "MIN",
"value": 1000.00,
"source": "CONFIGURATION"
},
{
"type": "TARGET",
"value": 5000.00,
"source": "CONFIGURATION"
}
]
}
}