With Web3 Shards, you can subscribe to a number of different types of data from the blockchain. There are two ways to get live data:

  • Subscribe to Websockets
  • Create Webhooks

You can create custom filters on any of the data, but for convenience we have created several categories of live data you can get started with today:

  • Raw Block Headers
  • Raw Transaction Logs
  • DEX Pairs
  • DEX Trades

Raw Block Headers

{
  "parentHash": "0x15e0c779b0425366c7ca759dafb5aad7e9ea3bc4267e0c8ed2760851235c3336",
  "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
  "miner": "0x4838B106FCe9647Bdf1E7877BF73cE8B0BAD5f97",
  "stateRoot": "0x96f4cae328179f70f41343de17186cd05bd5398563293a52fd0f6eaab9643ec9",
  "transactionsRoot": "0x7032a1d4b1aad28c2cb15b45275693349ddedf9ddbd29cf1725a5e03a80a179f",
  "receiptsRoot": "0xa6af9bcfb7d7fd2bb4806be33dd41d6410b22840e6316abeab495330f30e8c28",
  "logsBloom": "0x42ad0702e1812bdbd0290042c39969656288129b9d9dc03639194222573a050e26c42dc01f332860141137e221ab093a26d12b859a2c7d294b51a809e1bbb8980012f41854b3ca7b688a481ef78450ea490a06092565b830a1587f0ec3a442611c611c81e203db0546055881b263acc1a79a4d67180546d09e62ead2f2892a332b64ebf2499629c118ccdb6152a3002214529161e91a06e8c735024062dbaeaacbbb3cc1c9feacfcded040dc3dba47a28e8644c20275622bb9a7d736844ac961e55b0186204784b95b010a7411bb5597e85c026ca2281c160434256a13906ce8ddf6be1804274aa84cb5a990eda13fc1b5219039fd580250c9ffcb1382813411",
  "difficulty": "0",
  "number": 18237492,
  "gasLimit": 30000000,
  "gasUsed": 13236210,
  "timestamp": 1695943499,
  "extraData": "0x546974616e2028746974616e6275696c6465722e78797a29",
  "mixHash": "0xfeb206289582992b4a8c5c12f2283ee973bc079da284fda1c7f6c2976a7bd3f0",
  "nonce": "0x0000000000000000",
  "baseFeePerGas": 7207902488,
  "withdrawalsRoot": "0x55547b91126744313165104a6f3d4b2a8a3590e413f06281e5e6b4dcbb9d4dc7",
  "hash": "0x25de69bd913859e998599460d1871b631fdbaf4a73d066dfc65fb6d25a229f2b"
}

Raw Transaction Logs

{
  "address": "0xa093FBFa774f0F0598eB26611b97aca46f15083C",
  "topics": [
    "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
    "0x0000000000000000000000000000000000000000000000000000000000000000",
    "0x000000000000000000000000553d03ce8d9df842f3b3aa61f7e8dc91e9e53477",
    "0x0000000000000000000000000000000000000000000000000000000000000fd5"
  ],
  "data": "0x",
  "blockNumber": 18237485,
  "transactionHash": "0xae8fe9a149465e4a60bf797d1686270cc3d303fff83165e39e5e883bd4ee6774",
  "transactionIndex": 69,
  "blockHash": "0x372b5a7ad20f6548936caf0fba2039908f51e7ee08a20934d36652b24d7b9a2a",
  "logIndex": 201,
  "removed": false,
  "id": "log_e01e1441"
}

DEX Pairs

{
  "pool_address": "0x4c4cF7351823Fe7e869F0711b05f23823d3F92F2",
  "chain": "ETH",
  "base": {
    "name": "Wrapped Ether",
    "symbol": "WETH",
    "decimals": "18",
    "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
  },
  "name": "Khabylameinu",
  "symbol": "Khabylameinu",
  "decimals": "9",
  "address": "0x66002050ace6024ea993599ca56c9032d2a461ff",
  "token0": "0x66002050ace6024ea993599ca56c9032d2a461ff",
  "transactionHash": "0x1a710a888e22a016efe02b43a3340c1f1067a3d4f697529852235891003e59f2",
  "date": "2023-09-28T23:42:23.000Z",
  "blockNumber": 18237577,
  "timestamp": 1695944543
}

DEX Trades

{
  "type": "buy",
  "tokensTransferred": 6822.464794906732,
  "backingCurrencyValue": 0.03201196321511834,
  "blockNumber": 18237508,
  "tx": "0xf032127ec5c691e09c6d7414707999a3c295ba1e2c29d23eca5283619586f4cb",
  "version": "2",
  "backingCurrencyType": "weth",
  "timestamp": 1695943691,
  "backingCurrencyPrice": 1653.56,
  "usd": 52.93370189399108,
  "price": 0.007758735806670398,
  "pair": "0x4f9fcdae3950a033074b93e269b6c382109fae71",
  "token": "0x419c4db4b9e25d6db2ad9691ccb832c8d9fda05e",
  "origin": "0xae2fc483527b8ef99eb5d9b44875f005ba1fae13",
  "chain": "eth"
}