Crypto deposit webhooks
Txn sends a crypto deposit webhook when a transfer to one of your account addresses is detected, when it is put on hold, and when it reaches a final status. Payments to invoice and channel addresses are reported as invoice webhooks and channel webhooks instead.
Unlike the other webhooks, this payload does not mirror its Read endpoint. Reading crypto deposit returns the account transaction in data and the deposit in included[]. The webhook carries the coinDeposits entity itself in data, with the network and addresses entities in included[]. data.id is the same ID in both, so you can pass it to Reading crypto deposit to fetch the account transaction and its balance.
For the lifecycle of a deposit, see Crypto deposit status flow. For configuring webhook URLs, retry behaviour, source IPs, and signature verification, see the general Webhooks section.
Payload
data.type
string
Always coinDeposits.
data.attributes.accountId
string
ID of the account the deposit is credited to.
data.attributes.amount
string
Amount received, in currencyCode.
data.attributes.currencyCode
string
Currency of the deposit.
data.attributes.txHash
string
On-chain transaction hash.
data.attributes.sourceAddresses
array
Address or addresses the funds were sent from. Several entries are possible on UTXO networks (BTC, LTC, BCH, DOGE) when the sender's wallet combined inputs.
data.attributes.simplifiedState
string
Deposit status: pending, on_hold, travel_rule_waiting, completed, rejected or cancelled. Use this field in your integration. See Crypto deposit status flow.
data.attributes.state
string
Internal Txn state. Ignore it and use simplifiedState.
data.attributes.reference
string
Deposit reference. null for deposits to account addresses.
data.attributes.riskScore
string
Risk score of the source address from on-chain analytics screening, when one was returned. Otherwise null.
data.attributes.clusterCategory
string
Category of the entity the source address is attributed to, for example Exchange. null until screening completes.
data.attributes.clusterName
string
Name of the entity the source address is attributed to. null until screening completes.
data.relationships.address
object
The receiving address. data.type is addresses; the entity is in included[].
data.relationships.network
object
The network the deposit arrived on. data.type is network; the entity is in included[].
data.relationships.author
object
Always null for deposits, so included[] carries no apiKeys entity.
included[].type(network).attributes.code
string
Network code, for example ttrx:usdt. See Supported currencies.
included[].type(network).attributes.name
string
Network name, for example Tron (TRC20).
included[].type(network).attributes.currencyCode
string
Currency of the network.
included[].type(addresses).attributes.value
string
The address the deposit was received at.
included[].type(addresses).attributes.label
string
Address label.
included[].type(addresses).attributes.createdAt
string
When the address was created.
Examples
The examples below were captured from Sandbox: a USDT transfer on the Tron test network to an account address, detected and then completed.
Last updated