API Reference

Webhook API Quickstart

The Notify API manages transaction or event notifications using webhooks.

ZAN Webhook is a tool used to subscribe to transaction or event notifications within your applications. To receive real-time notifications and quick insight on different types of on-chain activity, you can create a webhook in our dashboard. Here are some quick-links:

📘

Note

If you do not have an API key, please create For Free.

Webhook types

Below are the ZAN webhook types and their supported networks.

Webhook TypeDescriptionNetwork
Custom Contract WebhooksCustom Contract Webhooks allow you to track any smart contract with its events, and monitor any transaction events when on-chain interaction occurs. This provides you with unlimited data access and quick insight into the self-defined activity you require.Ethereum Mainnet
Address ActivityZAN's Address Activity webhook tracks all ETH, ERC20, ERC721, and ERC1155 transfers. This provides your app with real-time state changes when an address sends/receives ETH or tokens. You can specify the addresses for which you want to track on the chain.Ethereum Main
NFT Collection ActivityThe NFT Collection Activity webhook allows you to track all the IDs in ERC721 and ERC1155 token contracts. This provides your app with real-time state changes when an NFT is transferred between addresses.Ethereum Mainnet
Specific NFT ActivityThe Specific NFT Activity webhook allows you to track the specific ID in ERC721 and ERC1155 token contracts. This provides your app with real-time state changes when an NFT is transferred between addresses.Ethereum Mainnet
Token ActivityThe Token Activity webhook allows you to track ERC20 token contracts. This provides your app with real-time state changes when a token is transferred between addresses.Ethereum Mainnet

V1 Webhook

Field definitions

FieldDescriptionValue
webhookIdUnique ID of the webhook destination.8cb7a0dd-4181-4484-81fe-5d4315b19a04
idID of the event.b1039dc23f5c470a8c78dc901d3d6c23
createdAtThe timestamp when the event notification was created.2023-09-02T01:10:39Z
typeWebhook event type.TYPE_STRING
eventObject-mined transaction.OBJECT

Example

{
 "webhookId": "8cb7a0dd-4181-4484-81fe-5d4315b19a04",
 "id": "b1039dc23f5c470a8c78dc901d3d6c23",
 "createdAt": "2023-09-02T01:10:39Z",
 "type": TYPE_STRING,
 "event": OBJECT
}

How to Set up Webhooks

Setting up a webhook is as simple as adding a new URL to your application.

❗️

Note:

If you meet any problems when using our webhook test, please contact us.

Set up webhooks in your dashboard

  1. Navigate to the Webhook tab in your ZAN Dashboard.
  2. Click the Create New button.
  3. Set a name of the webhook. Then determine which type of webhook you want to activate.
  4. Select your Chain in the dropdown. Then choose your Network.
  5. Add in your unique webhook URL. This is the link to receive requests. The webhook payload might not always be compatible for 3rd party integrations.
  6. Test your webhook by clicking the Test button.
  7. Click Confirm and your webhook appears in the list.
  8. Check your endpoint to see responses.

📘

Note:

For more detailed steps on how to set up custom contract webhooks, please refer to Create a New Webhook.

Webhook IP addresses

As an added security measure, you can ensure your webhook notification originates from ZAN by using one of the following IP addresses:

  • 8.222.255.126

Webhook retry logic

ZAN Notify V1 has a built-in retry logic for webhooks. Requests are retried 3 times for failures to reach your server.