Receive a Discord notification whenever there’s a new event in a Smart Contract

In this tutorial, we will create a workflow to send a message via Discord every time there is a new event on a given address (Smart contract).

Note: Take into account that you will need a Discord server on which you are an administrator and the smart contract address you want to retrieve information. You will also have to log into ChainJet and a wallet address.

ChainJet is a decentralized platform for building on-chain or off-chain task automation without having to code custom solutions. With ChainJet, users can integrate multiple services to automate all kinds of tasks.

After connecting to ChainJet with your wallet, create a workflow from the Dashboard and click on Add trigger. Then, choose New Event from the Blockchain section in the Popular triggers tab. Complete the boxes with the network and the Smart contract address of your choice.

Other possible triggers are New transaction, New token transfer, and New NFT transfer. Select the one that suits your needs the best! Remember that you’ll have to complete different information depending on what your trigger is.

After selecting the network and completing the address box, you will have to choose the desired event among the options available and click on submit. We support a variety of networks such as Ethereum, Arbitrum, Avalanche, BNB Chain (BSC), Celo, Cronos, Fantom, Gnosis, Görli, Harmony, Kovan, Metis, Optimism, Polygon, Rinkeby, Ropsten, Sepolia, and Tomb Chain.

In this example, the bot will send a message to a Discord server every time there’s a deposit in a specific Smart Contract on the BNB Chain (BSC) network.

Here is a gif on how to create the Blockchain trigger:

Once you finish the trigger, the next step is to click on the plus sign to add Discord integration as action.

Our example was to send a message to a Discord server every time there’s a deposit in the Smart contract address of your choice, for this purpose, we’ll choose the option “send a message”. Before continuing, ChainJet will ask you to connect your Discord account. If you don’t know how to do it, here is a link to a step-by-step guide.

Having connected your Discord account, the next step is to select the server on which you want to receive the message and fill in the text box with the information you wish to receive. If you click on the Text box, you’ll see all the inputs available from the trigger to customize your message. Next to the inputs, there is an example of the information it will retrieve based on the last operation performed. Here, we chose “eventName”, and “User”.Finally, click on either Skip test or Test and create and your workflow will be finished! Remember that you can use the pencil tool to edit any step of the workflow.

Here is a gif of how to create the Discord action:

Now, your workflow is ready and you will receive a Discord notification every time there’s a deposit in a given address (Smart Contract). The possibilities are limitless, it’s up to you and your creativity.

Thank you for reading! If you have further doubts, feel free to join our Discord community.

Subscribe to ChainJet.io
Receive the latest updates directly to your inbox.
Mint this entry as an NFT to add it to your collection.
Verification
This entry has been permanently stored onchain and signed by its creator.