Latest Transfers of Token in Network

Streams the latest 10 DEX trades by token and transfers on Ethereum as they happen, where currency smart contract is 0x8ce5…796f: chain ID, transfer amount, sender, receiver, currency symbol, smart contract, block number and 2 more fields.

By Nadia · saved 16 June 2023 · Bitquery API v2

What it returns

Filters

The subscription

subscription ($network: evm_network, $limit: Int!, $token: String!) {
  EVM(network: $network) {
    DEXTradeByTokens(
      orderBy: {descending: Block_Number}
      limit: {count: $limit}
      where: {Trade: {Currency: {SmartContract: {is: $token}}}}
    ) {
      ChainId
    }
    Transfers {
      Transfer {
        Amount
        Sender
        Receiver
        Currency {
          Symbol
          SmartContract
        }
      }
      Block {
        Number
        Time
      }
      Transaction {
        Hash
      }
    }
  }
}

Variables

{
  "network": "eth",
  "limit": 10,
  "offset": 0,
  "address": "0x8ce578bad214d59aefafb49bd20408e81271796f",
  "token": "0x8ce578bad214d59aefafb49bd20408e81271796f"
}

Similar queries