/monitor_txAuth requiredMonitor USDT Transaction
Begin tracking a USDT transaction. Callbacks are sent to your store's endpoint whenever the transaction status changes.
Requires Bearer token authentication. Include Authorization: Bearer YOUR_API_KEY in the request header.
Request Body
txhashstringrequiredThe transaction hash to monitor.
cryptostringrequiredThe cryptocurrency used (USDT).
match_callbackstringrequiredString to match part of your store's callback URL. Used to identify the correct store when you have multiple.
testnetintegerrequiredNetwork. 0 = mainnet (Ethereum), 1 = Sepolia testnet.
Responses
statusintegerCurrent status of the transaction. -1 = Reverted, 0 = Unconfirmed, 1 = 1 confirmation, 2 = 2 confirmations (final).
txhashbody · stringrequiredThe transaction hash to monitor.
cryptobody · stringrequiredThe cryptocurrency used (USDT).
match_callbackbody · stringrequiredString to match part of your store's callback URL. Used to identify the correct store when you have multiple.
testnetbody · integerrequiredNetwork. `0` = mainnet (Ethereum), `1` = Sepolia testnet.
Response will appear here
Request
curl -X POST \
"https://www.blockonomics.co/api/monitor_tx" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"const response = await fetch('https://www.blockonomics.co/api/monitor_tx', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
})
const data = await response.json()
console.log(data)import requests
headers = {
"Authorization": "Bearer YOUR_API_KEY"
}
response = requests.post(
"https://www.blockonomics.co/api/monitor_tx",
headers=headers
)
print(response.json())Response
{
"status": 0
}