v0/blobGET
v0/blobPOST
v0/blob/get_allPOST
v0/blob/get_commitmentPOST
v0/blob/statusGET
v0/data_root_inclusion_proofGET
v0/gas_priceGET
v0/headerGET
v0/subscriptionsDELETE
v0/subscriptionsGET
v0/subscriptionsPOST

POST v0/subscriptions
Creates a new address subscription

This endpoint creates a subscription to a particular address on a specified blockchain. When new transactions involving that address are included on the blockchain, a notification will be sent to the provided callback URL.

This subscription follows the webhook pattern. Your specified callback URL will be invoked with a POST request containing transaction details. The transaction details are sent in a JSON object, the shape of which varies depending on the blockchain being monitored.

Body Parameters
addressstring (required)

The address to subscribe to.

callbackUrlstring (required)

The webhook URL to which notifications will be sent when new transactions are detected for the subscribed address.

networkstring (required)

The network that we are monitoring the address on. (Celestia or Eden)

chainIdstring (required)

The specific chain for the blockchain in which we are monitoring. (Celestia “mainnet” or “mocha-4”, Eden “eden-1-testnet”)

Response
string
Example Response
Request

curl \
  -X POST 'https://t.tech/v0/subscriptions' \
  -H 'Authorization: Bearer <YOUR API KEY>' \
  -H 'Content-Type: application/json' \
  -d '{"address": "REPLACE ME", "callbackUrl": "REPLACE ME", "network": "REPLACE ME", "chainId": "REPLACE ME"}'
twinkle logo text
Enabling builders