Balances
Get notified when a wallet’s ERC20 token balance changes.
Activities
Receive updates when a wallet has new activity, such as token transfers or contract interactions.
Transactions
Be alerted when a wallet sends or receives a transaction.
Setting Up Webhooks
You can set up and manage your subscriptions in two ways:Through the Sim Dev Portal
Log in to your Sim account and navigate to Subscriptions in the sidebar. Click Create Webhook to set up a new webhook subscription.
Compute Unit Cost
The Subscriptions API costs 1 CU per event sent to your webhook. Note that a single webhook call may include multiple events. For example, multiple balance changes or transactions. Creating and managing webhook subscriptions through the API does not consume compute units. However, your account must have an active plan to use the Subscriptions API.See the Compute Units page for detailed information.
Webhook Payloads
When a subscribed event occurs, Sim APIs will send aPOST request to your specified webhook URL. The request body will contain a JSON payload with the event data. Each subscription type returns different data structures and is available on different sets of supported chains.
Webhook Headers
Webhook Headers
All webhook deliveries include a set of
Security: To secure your webhook endpoint, validate that incoming requests are from Sim. We include a signature in the
dune-webhook-* headers to provide metadata about the event and delivery attempt.| Header | Description |
|---|---|
dune-webhook-id | The unique ID of the webhook subscription that triggered this event. |
dune-webhook-type | The type of subscription (transactions, activities, or balances). |
dune-webhook-chain-id | The ID of the chain where the event occurred. |
dune-webhook-dispatch-timestamp | The timestamp (ISO 8601) when the webhook was dispatched. |
dune-webhook-retry-index | The retry attempt number for this delivery (0 for the first attempt). |
dune-webhook-signature header that you can use to verify the authenticity of webhook deliveries. Always validate webhook signatures in production.Retry Logic: If your webhook endpoint returns a non-2xx status code or is unreachable, Sim will automatically retry the delivery using an exponential backoff strategy with up to 5 retry attempts over a 24-hour period. Track the retry attempt number using the dune-webhook-retry-index header (0 for the first attempt).