Skip to main content
POST
/
v1
/
tx-subscriptions
Create subscription
curl --request POST \
  --url https://api.zerion.io/v1/tx-subscriptions/ \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "callback_url": "https://webhook.site/fcd606d2-f5bd-4832-9874-ff07c980b5a3",
  "addresses": [
    "0x42b9df65b219b3dd36ff330a4dd8f327a6ada990"
  ]
}
'
{
  "data": {
    "type": "transactions_subscription",
    "id": "52d994a173d755e99845e861d534a419",
    "attributes": {
      "callback_url": "https://webhook.site/fcd606d2-f5bd-4832-9874-ff07c980b5a3",
      "created_at": "2022-08-15T11:26:31+00:00",
      "updated_at": "2022-08-15T11:26:31+00:00"
    },
    "relationships": {
      "chains": [
        {
          "links": {
            "related": "https://api.zerion.io/v1/chains/polygon"
          },
          "data": {
            "type": "chains",
            "id": "polygon"
          }
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
callback_url
string
required

Callback URL where updates will be delivered to

Example:

"https://webhook.site/fcd606d2-f5bd-4832-9874-ff07c980b5a3"

addresses
string[]
required

Addresses of the wallets to create subscription for. Maximum 100 addresses per subscription. Note: Free tier accounts are limited to 5 addresses per subscription.

Address of the wallet.

chain_ids
string[]

Subscribe for transactions from specified chains. Leave empty to subscribe for all supported chains. You can find available chain ids in chain endpoints.

Callbacks

POST
<your webhook URL>TransactionCallback

Body

application/json

Response for requested list of transactions

data
object
required
included
object[]

Response

Successful callback processing

Response

Response for requested wallet's transactions subscription

data
object
required