The Stellar service uses our monitoring hooks service under the hood to track relevant Stellar transactions. It is not nescessary to integrate or setup the hooks service when using the Stellar service but it can be useful as it’s own standalone tool.
Using the hooks service is built to be simple. Once registered any Stellar address can be added as a webhook to the service with a callback URL. When a transaction is detected on-chain for the address the hooks service will fire of a webhook to the specified URL.
Registering and Authorization
To get an API key for the service POST
password fields to the
The API key should be included in the
Authorization header example:
Authorization: Token API_KEY
The webhook resource handles the following fields:
|webhook_id||Internal hooks service id|
|url||URL the service will send webhook data to when a new transaction is detected|
|address||Stellar public address to monitor|
|last_checked_cursor||The Horizon cursor transaction should be checked from (Defaults to
|secret||A secret that can be identified by the service recieving the webhook|
|external_id||External identifier for the webhook|
To setup an address for monitoring POST
secret fields to the
/webhook/ endpoint. The rest are not
Transaction webhook data structure
To be added.