curl --request POST \
--url https://rt.tonapi.io/webhooks/{webhook_id}/account-tx/subscribe \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accounts": [
{
"account_id": "0:6ccd325a858c379693fae2bcaab1c2906831a4e10a6c3bb44ee8b615bca1d220"
}
]
}
'{
"message": "unauthorized",
"status_code": 401
}Subscribe to transactions on the specified accounts. When a new transaction happens on any of the accounts, TONAPI sends a POST request to the webhook URL.
curl --request POST \
--url https://rt.tonapi.io/webhooks/{webhook_id}/account-tx/subscribe \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accounts": [
{
"account_id": "0:6ccd325a858c379693fae2bcaab1c2906831a4e10a6c3bb44ee8b615bca1d220"
}
]
}
'{
"message": "unauthorized",
"status_code": 401
}API key from tonconsole.com. Can also be passed as a token query parameter.
Webhook identifier.
Show child attributes
Subscribed
Was this page helpful?