Skip to main content
Block Events

Tracking onchain activity requires deep knowledge of the blockchain's data models and robust infrastructure.

Djuno Support avatar
Written by Djuno Support
Updated over a week ago

Overview

Tracking onchain activity requires deep knowledge of the blockchain's data models and robust infrastructure. Ensuring reliability and the lowest latencies requires frequent polling or redundant websocket connections which can be very costly at scale.

With Djuno Block Events, you can deploy alerts for data changes on the blockchain. You have to write a small expression to target specific data on the blockchain, and as soon as that change takes place on the blockchain, Djuno Block events will send the notification in real-time. Whether it's tracking transactions sent and received by a wallet address, smart contract events, gas changes within a block, or new block confirmations, anything on-chain can be tracked using blockevents.

Use cases

Block events is a new developer experience that allows you to create custom expressions and receive real-time notifications for a variety of activities. These can include:

  • Monitoring wallets, contracts, NFTs, tokens, transactions, blocks, validators, and more.

  • When a specific wallet sends and/or receives a transaction

  • When a specific wallet sends/receives a transaction to/from another specific wallet

  • When a new NFT is minted

  • When a specific NFT is transferred

  • When a specific event happens on a specific smart contract

  • When a specific event happens on any smart contract

  • When a block contains more/less than X # of transactions

  • Any transactions that fail

  • Complex examples like: Whenever the fees burned in a block are > .2 ETH AND there is at least one Uniswap transaction within the block

When a Blockevents is triggered, a user can receive notification payloads delivered to one or more destinations in real-time. During beta, only Webhook notifications are supported. However, Block events will eventually support notifications on a webhook.

How it works

Once signed in, navigate to the Block events page and click the Create Event button.

On the Select Template tab, name your alert and select the chain and network you want the alert for. At this time, Block events supports the following chains:

  • Avalanche C-Chain (Mainnet)

  • BNB Smart Chain (Mainnet)

  • Celo (Mainnet)

  • Ethereum (Mainnet)

  • Ethereum (Goerli)

  • Ethereum (Sepolia)

  • Optimism (Mainnet)

  • Arbitrum (Mainnet)

  • Arbitrum Nova (Mainnet)

  • Fantom (Mainnet)

  • Polygon (Mainnet)

  • Gnosis (Mainnet)

  • Scroll (Mainnet)

  • Scroll (Testnet)

  • zkSync Era (Mainnet)

  • zkSync Era (Testnet)

Then, choose a template. Block events have a set of hand-crafted templates for a variety of use cases such as Any NFT is Minted, Monitor Smart Contract Events, Failed Transactions and more. You can also create a blank template and create your own expression from scratch.

On the Create Expression tab, you can use the Legend to see which blockchain fields you want to create expressions for. In the screenshot above, we're looking for transactions within a block that have a To recipient value of 0xE592427A0AEce92De3Edee1F18E0157C05861564:

You can click the Test Expression button to verify if your expression is syntactically correct. Additionally, you can target data within a specific block using the Block Expression tab or backtest your expression against historical data using the Test Expressions tab. Once your expression is verified, you can click Next to choose a destination.

Then, on the Create Destination tab, you can choose your destination. If you are using a WebHook, select a name, input the URL and request type (i.e., GET, POST). Lastly, you'd click Create Webhook.


​Pricing

to check out flexible pricing see this link

Did this answer your question?