Search
K

Transaction Webhook

Aquanow offers webhook callbacks for clients that want to be updated when a transaction is detected on-chain or finalized.

Status of Transaction

Status
Description
DONE
Successfully deposited and executed.
REJECTED
Successfully deposited but no execution occurred.
AML_DECLINED
Transaction has been declined due to AML reasons.

Webhook Payload Examples

DONE
{
"quantity": 0.003223,
"subaccount": "deedddff",
"txId": "14ea698f-96b6-468d-8b1f-c52a695ee627",
"symbol": "ETH",
"txHash": "0xf62f9fe6c90e85792fef676ddaa711916d9abb6b6b600e3c5b1d4bdcb1a38ec1",
"txTime": 1632204599177,
"address": "0xc08377dF1eF026aeb12dcc57D254173CB6b0A1aA",
"fiatReceived": 12.347,
"tradeSide": "buy"
"transactionType": "DEPOSIT",
"username": "helloWorld",
"adminApproval": "DONE"
}
REJECTED
{
"quantity": 0.00009989,
"sourceAddress": "tb1qwmxjsq283elnzsd306c6h3z08fucyhl565a4s2",
"subaccount": "deedddff",
"txId": "e09fef5d-6ab4-4da1-bed6-5a7d6416162d",
"symbol": "BTC",
"txHash": "7f9e94c800079ed7ff71da6d02e16885e9ae39cb8c79473649fb00254f20fe1b",
"txTime": 1649259696838,
"address": "mtTu1NHfgbWQH2u4iXCfSYnohbQw1w1AJj",
"tradeSide": "buy"
"transactionType": "DEPOSIT",
"username": "helloWorld",
"adminApproval": "REJECTED"
}
AML_DECLINED
{
"address": "mzczAqqqNqtozbaT7oJEzYML814Wg7d999",
"adminApproval": "AML_DECLINED",
"confirmation": 0,
"quantity": 0.00002159,
"sourceAddress": "tb1qx3r63vymgvp0ln5na022zzh7cv6xu3rs94g6ca",
"subaccount": "deedddff",
"symbol": "BTC",
"tradeSide": "buy"
"transactionType": "DEPOSIT",
"txHash": "14a8cbac6973374573326ab97891c9fe13eec03143e538e1a3e92987140ab04a",
"txId": "3e06c4eb-b134-4a93-a78f-a979e1d3a803",
"username": "helloWorld"
}

Callback Parameter Values

Parameter
Type
Description
sourceAddress
String
Source address of the transaction
address
String
Destination address of deposit
adminApproval
String
'DONE' , 'REJECTED' or 'AML_DECLINED'
Status of transaction, see table for more information.
quantity
Number
Size of transaction in specified symbol
subaccount
String
Payment service provider's user who initiates the deposit request
symbol
String
e.g., BTC Crypto symbol
transactionType
String
DEPOSIT | WITHDRAW Type of transaction
txHash
String
Blockchain transaction Hash
txId
String
UUID, unique to the transaction record
txTime
Number
Time of transaction confirmation in blockchain in epoch milliseconds
username
String
Your username
fiatReceived
Number, optional
Amount traded to fiat
currencyTag
String, optional
Additional address property (Tag/Memo) that allows identifying the transfer beneficiary or destination for a transaction