Skip to Content
WebhooksOverview

Webhooks

Spectrum Webhooks push real-time blockchain activity to an HTTPS endpoint, Slack channel, or Telegram chat. Watch addresses for transfers and transactions, watch smart contracts for specific emitted events, or follow network releases and upgrades without running your own polling infrastructure.

How it works

  1. Create a webhook. Choose Address Activity, Contract Events, or Network Calendar, select a chain, configure its filters, and choose a destination.
  2. Spectrum watches the chain in real time. Each block is checked for matching address activity or matching contract logs.
  3. Matching events are delivered. Events from one block are bundled into one delivery to your HTTPS endpoint, Slack channel, or Telegram chat.
  4. Your destination processes the event. HTTPS receivers verify the signature and process the JSON; Slack and Telegram receive a readable summary.
On-chain activity ──► Spectrum listener ──► HTTPS / Slack / Telegram (address or event) (real-time) (your destination)

Supported webhook types

Address Activity

Address Activity (ADDRESS_ACTIVITY) watches addresses and delivers the native, token, and NFT activity they take part in. Each matched entry has a transfer category:

CategoryWhat it matches
externalNative-asset transfer from a top-level transaction, such as an ETH send.
internalNative-asset transfer from a contract-internal CALL or CREATE.
erc20ERC-20 token transfer; delivered with category: "token".
erc721ERC-721 NFT transfer.
erc1155ERC-1155 multi-token transfer.

A webhook receives every category by default, or you can select categories when you create it. See Activity Categories for the exact delivered fields.

On NEAR, Address Activity watches account IDs such as alice.near and delivers native NEAR transfers, NEP-141 token, NEP-171 NFT, and NEP-245 multi-token activity, plus protocol actions such as function calls, staking, and account changes. See NEAR Activity.

Contract Events

Contract Events (CONTRACT_EVENT) watches logs emitted by one selected smart contract on an EVM chain. Configure events in three ways:

Event selectionResult
ABI fragmentMatches the event signature and delivers decoded, named arguments.
Raw topic0 hashMatches the signature and delivers raw topics and data without decoded arguments.
All eventsMatches every log emitted by the selected contract, including anonymous events.

ABI fragments and raw hashes can be combined. See Contract Events for indexed filters, decoding rules, and payload examples.

Network Calendar

Network Calendar (NETWORK_CALENDAR) delivers network releases and upgrades from the Spectrum network calendar. It is not tied to one chain: choose the networks and chain types to follow, and every webhook receives all three actions:

ActionWhen it fires
createdA new entry is approved on the calendar.
updatedA scheduled entry changes.
upcomingA reminder ahead of the entry’s date, 1 day by default.

See Network Calendar for filters, reminder timing, and the payload.

Why use webhooks

  • Real-time. Events arrive as blocks are produced, no polling loops, no eth_getLogs cron jobs.
  • Decoded. Address activity arrives with token metadata and human-readable amounts; contract logs selected by ABI arrive with named arguments.
  • Reliable. Deliveries are retried with backoff, dead-lettered if your endpoint stays down, and are at-least-once, you never silently miss an event.
  • Flexible destinations. Send signed JSON to HTTPS, or readable notifications to Slack and Telegram.
  • Reorg-aware. If a delivered block is later orphaned, Spectrum sends a follow-up so you can roll back derived state.

Managing webhooks

You create and manage webhooks from the Webhooks section of the Spectrum dashboard.

The Webhooks dashboard

Next steps

  • Creating a Webhook: choose a webhook type, filters, and destination; HTTPS users also save a signing key.
  • Activity Categories: what Address Activity captures and what each category delivers.
  • NEAR Activity: NEAR account IDs, categories, filter options, and payload fields.
  • Contract Events: select a contract and events with ABI fragments or raw topic hashes.
  • Network Calendar: get notified about network releases and upgrades, with reminders before they happen.
  • Destinations: configure HTTPS, Slack, or Telegram and create bot credentials.
  • Delivery & Retries: the payload, headers, retry policy, idempotency, reorgs, and monitoring.
  • Signing & Verification: verify signatures and rotate keys.

Webhooks are created and managed from the Webhooks section of the Spectrum dashboard. This section explains how to configure them and how to receive and verify the events they deliver to your server.