How to get insight in your community transactions
When setting up a community token it can be quite useful to keep track of what is happening with the token.
Luckily there are some easy ways to follow what is going on with your token.
- Follow up token activity on a blockchain explorer
- Set up a notification service
Blockchain explorers
In general, all blockchains have public explorers to easily navigate the data on their blockchain.
In most explorers, you can even link your wallet and immediately interact with the blockchain like minting or assigning new ownerships.
For Celo for example there is https://celoscan.io/. Open the details of a token by searching on the smart contract address.
Overview of example token on Celo
Set up a notification service
Get transaction notifications using Zapier.
Below you see an example of a simple notification flow to post a message in Discord every time there is a transaction. This can be done by using 2 free services: Zapier and Grindery.
Grindery Gateway allows you to implement Zapier workflows that read and write data from over 10 blockchains without a single line of code and without having any tokens.
To get started you need to set up a free Zapier account. Keep in mind that we a free account you will only be able to do 100 actions. If you want to track more transactions than that you will have to create a paying account.
To set it up you need to select Grindery as the trigger step of your Zap. You will need to sign in with a wallet like Metamask to link Grindery to an Ethereum provider.
After that, you can select the trigger for your notification. If you just want to log transactions you can select transfer.
Secondly, you need to select a Blockchain and token address.
If you want to filter on certain transactions you can also add a sender or receiver address for which you want to see the transactions. To just log all transactions of the token you can leave these fields empty.
In the test step, it will retrieve a sample transaction. Don't worry you don't recognise this transaction. Grindery seems to display a standard transaction to be able to proceed with the next steps.
In the second step, you will have to perform a math operation using the Formatter by Zapier block.
As the data that is captured by Grindery is raw transaction data you will need to convert the transaction amount. By default, the transaction amount doesn't have a decimal separator. This means that you need to divide the amount by the decimal rule defined by the token. Depending on the token you will have to divide by 1000000 or 10^16 to get the correct number.
Finally, you can integrate with a messaging app of your choice to send a message with the transaction data. Make sure you have the necessary admin rights to able to integrate bot-messages in Slack or Discord. In the message content, you can insert variables from the previous step of your Zap. Make sure to use the output number from the second step
The result is a simple message.
Discord bot-message