How to Monitor Web3 Events Through Tokenview Transaction Tracking APIs?
How to Monitor Web3 Events Through Tokenview Transaction Tracking APIs?
A new API product "Transaction Tracking" goes live in Tokenview blockchain Developer Platform. It is a "webhook" product similar to the "Address Tracking". You need set a monitoring address for "Address Tracking", while you need set a monitoring condition for "Transaction Tracking".
What conditions you may set for Transaction? For example,
1) transfer volume > 10000 ETH
2) gas fee > 0.1 ETH
3) new token deployed
4) ETH/USDT swap is created on Uniswap
5) 1 billion USDTs borrowed by MakerDAO
6) ETH is staked
7) and more
After setting the monitoring conditions, once a new transaction meets the conditions, and it is confirmed on the blockchain, a real-time message will be notified to webhook. For example, this API is used to assist DeFi trade, that helps make more profits and risk control.
How to enable Transaction Tracking?
4 simple steps:
- Register
- Log in
- Find "Transaction Tracking" from the dashboard panel
- Get "API Key" from the generated project
How to set tracking conditions?
Each API Key has 2 attributes which must be set.
- a valid webhook url which is used to receive real-time message.
- a valid tracking condition which is used to filter out the matched transactions.
There are 3 popular tracking conditions availabe to monitor Web3 events for your reference.
Token Create
Notified once new Token is deployed on chain.
Whale Alert
Any whale transfer happened on blockchain, for example, notified once the transfer amount exceeds 1,000 ETH.
Web3 Events
Notified once Web3 Event is emitted by smart contract. When a method is called from smart contract, and the event is emitted, it can be monitored by Tokenview Transaction Tracking APIs. For example, once a new swap pool is created on Uniswap, Uniswap contract will emit a "PoolCreated" event. You can monitor these transactions and get notifications of "PoolCreated" event.
Finally, there are 2 solutions to set tracking conditions.
1) From dashboard, find out the Transaction Tracking project, click "Setting" from the panel, you will get "Tracking Condition" dropdown box, select and set according to the hint.
2) By calling Tokenview APIs, set the tracking conditions by using HTTP requests.
How to get real-time messages?
Once you set the tracking conditions successfully, your webhook url will get the real-time messages according to your setting.
All real-time messages are in JSON format. Different tracking condition has different message body, so you can check the document to get more detail information.
Can you notify me when there are new token deployed on Ethereum?
Yes.
Firstly, you need to set a webhook url.
Secondly, select the blockchain network you are monitoring, Ethereum.
Thirdly, select "Token Create" as the tracking condition.
The last step is to observe the messages sent to your webhook, and identify the "type=tokencreate" messages.
How can I get notification of whale transactions such as transfer amount more than 10,000 ETH and less than 20,000 ETH?
Open dashboard
- Set a webhook url which is used to receive notification.
- Select Ethereum.
- Select "Whale Alert", and input "ETH". The min value is set to 10,000. The max value is set to 20,000. Click "ADD" button.
- Observe the messages sent to your webhook, and identify the "type=tokentransfervolume" message, those are the notifications for you.
Use Tokenview API:
- Set a webhook url.
- Add tracking condition "Token Transfer Volume" by calling Tokenview API.
- Observe the messages sent to your webhook, and identify the "type=tokentransfervolume" message, those are the notifications for you.
Per customers' requests, Tokenview implements Transaction Tracking API product in Web3 Developer Platform. The goal is make it easier to use, and popular scenarios supported to monitor the future, condition-matched transactions. When you get instant nofications for any transaction level Web3 Event, DeFi trading, Whale Alert, Token Deployment, you will be faster to build your Web3 business.
Always, your feedback our passion. Please contact Tokenview for any suggestions.