Webhooks
Creating a webhook to subscribe to updates on the blockchain.
How does it work?
The profile_webhook_setup
mutation allows you to subscribe to events on the blockchain by creating webhooks.
All transactions in the blockchain are divided into shards, which are processed by our indexer. By creating a webhook, the indexer will apply your filters each time and send a request to the URL you specify with the data received from the shard
Mutation
Method allows you to create new webhooks and edit existing ones. To edit, you need to send a request with the same webhook_id and modified parameters. If you don't want to change the filters completely, but only extend them, use extend_filters
Example
Explanation of Parameters
webhook_id
: Integer - Webhook sequence numberendpoint
: String - URL of your servicefilters
: Object - Data filtering parameters. Regular filters are supported, as well as filters via __ (see Filters page)fields
: List of Strings - List of fields expected in the responseextend_filters
: Object - Optional parameter to extend the filters of an existing webhook. For the__in
filter, the addition of lists is done. That is, iffields__in: [3, 4]
, and the database already has afield__in: [1, 2]
, the resulting filter value will befield__in: [1, 2, 3, 4]
. Note if a value is passed, the value of thefilters
is ignored.
Response format
success
: Boolean - Webhook sequence numbererror_message
: String - URL of your servicewebhook
: Object - Сreated webhook
Webhook
You will receive regular updates at the url you specified . The webhook will contain transactions filtered by the fields and filters
Example
Limits
Limitations on the number of webhooks, filter list length, field list length and number of unique accounts per request depend on the subscription rate. You can find the latest information in our Telegram Bot @dtontech_bot
Last updated