Blocknative Notifications
Blocknative supports xDai with real-time notification and mempool exploration tools
Blocknative provides tools to access a real-time data feed as transactions are added to the transaction pool/queue and moved to blocks. This includes mempool streaming and other offerings from BlockNative.
Developers and users can follow data using webhooks and access tools and resources for integrating these features into their DApps. Tools include an API, SDK and javascript library. BlockNative also provides an Onboard tool DApp devs can integrate for wallet integration. The GC Network is supported by all of their tooling.


Example: Add address notifications with API / Webhooks & Slack

In this example we setup Slack notifications. For instructions on adding to a DApp, streaming mempool data from a contract, or developing with BlockNative tools, see the BlockNative docs.
1) Sign up for a Blocknative account on Account creation requires an email confirmation.
2) Create an API key for your application.
  1. 1.
    Go to your account page and Click Add new API key
  2. 2.
    Enter a name for this key (you can create additional keys later).
  3. 3.
    Click Generate New API Key.
3) Go to Slack and add the Incoming Webhooks. Search for Apps and add the integration. Instructions: Once enabled and added to a channel of your choice, copy the Webhook url.
4) Return to Blocknative dashboard and click Add a Webhook. Fill in the following:
  • URL (from step 3)
  • Blockchain: ethereum
  • Network: xdai
  • Username (optional)
  • Password (optional)
  • Click Create button
5) Add address(es) to monitor.
  1. 1.
    Click Watch Address.
  2. 2.
    Enter an 0x address to watch (can be a regular address, smart contract etc).
  3. 3.
    Click Watch. Address will be added. You can add multiple addresses / smart contract addresses if desired.
6) Submit a transaction to test.
  1. 1.
    Submit a transaction with MetaMask or another wallet of your choice using the address you added in step 5
  2. 2.
    Go to Slack to see pending and confirmed tx data. The following is example confirmed data (truncated) received from a basic send transaction. See the BlockNative Webhook API docs for all payload details for token transfer and contract method call transactions.
"status": "confirmed",
"network": "xdai",
"hash": "0x0.....2",
"from": "0x...80",
"to": "0x...e5",
"value": "300000000000000000",
"gas": 21000,
"gasPrice": "33000000000",
"blockHash": "0x...2",
"blockNumber": 10...39,
"input": "0x",
"gasUsed": "21000",
"asset": "ETH",
"watchedAddress": "0x...80",
"direction": "outgoing",
"counterparty": "0x...e5",
"apiKey": "53...7"