At Anyblock Analytics, we understand that sometimes you need to monitor a blockchain constantly for a particular event. Whether an app developer or an enterprise, you need a flexible solution for real-time blockchain alerting and notifications.
That is why we created our smart alerting feature for you. Our alerting gives you the flexibility to monitor smart contracts and enable fully configurable push notifications.
If you’d rather watch than read, here’s the link to a video walk-through.
Now, let’s dive deep into our alerting feature.
How to turn on our blockchain alerting
The basic functionalities for our alerting feature are available for free, but having a paid account is recommended to unlock the full potential of this feature.
Within your profile, you can find the alerting feature in the top-right corner of your control panel. To add a new alert, simply click on the NEW button.
How to configure your blockchain alerting to your needs
First, give your alert a name – the function comes in handy if you have multiple alerts connected to your account.
Second, set the network of your choice. All of our alerts are attached to one specific network. Pick your preferred one from the dropdown menu of available networks. We are constantly onboarding new networks to our system.
Third, define the confirmation count, which is the block distance to trigger the alert. We recommend you set the counter to at least five (5) to avoid potentially misleading alerting in the case of blockchain reorganizations.
Lastly, set the status of your alert. You can predefine if you want to go live with your alert and receive notifications immediately or not. You are now ready to define the alert’s code via our web interface or API.
Working with alerting examples
Let’s focus on the alerting examples which we provide. Click on the documentation link and find the alerting examples section. Our alerting can track any token or other use cases, such as smart contract gas balances. The webhook notifications are generally the preferred way for developers, as it enables triggering IT workflows in existing systems or dapps. In addition to a webhook, your free account lets you receive notifications via Slack as well. If you want to receive email notifications, you must upgrade to a premium account at Anyblock.
To illustrate how you can work with the code, let’s look at the ERC-20 example which is an email alerting example. Find the ERC-20 alerting example in the documentation, check the sample code, and copy it to your clipboard. Go back to your alerting editor and paste the code.
First, you need to edit the email address as this will be where you will receive the notifications. Then edit the address hash to your needs – in our explainer video, we use Chainlink as a token example. Lastly, edit the wallet information. We use a node operator wallet in our video, but of course, you would use your address most often – any address can work, though.
If there is anything wrong with your code, the editor immediately lets you know with an error message. If everything seems fine to you, hit save and set your alert live. Once you have saved your code, your alert should appear on your alerting notifications list.
Monitoring your alerting
You can turn the alert off, delete it entirely or edit it further. You can also track the number of transmitted alerts since it went live, the number of pending alerts, and the number of retried alerts. You will also receive the notifications on your preferred platform, in our ERC-20 example case, in your mailbox. The notification will contain the information specified as the payload in your configuration.
Video: How to work with Anyblock Blockchain Alerts?
You can configure the alerting to your needs via our graphical user interface or our API. To overcome the schema complexity, we have provided you with complete documentation, including alerting examples for different use cases.
If you have any questions, feel free to contact us. Our basic alerting feature is free to use.