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.

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"}'

Body Parameters

address
stringrequired

The address to subscribe to.

callbackUrl
stringrequired

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

network
stringrequired

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

chainId
stringrequired

The specific chain for the blockchain in which we are monitoring. (Celestia: “celestia” or “mocha-4”, Eden: “edennet-1-testnet”, or Ethereum: “ethereum” or “sepolia”)

Response

string

Example Response