Subscription Latest Transfers of Token in Network

Streams 10 transfers on Ethereum as they happen, where currency smart contract is 0x8ce5…796f, block date since 2023-01-12 and block date till 2023-06-19: chain ID, transfer amount, sender, receiver, currency symbol, smart contract, block number and 2 more fields.

By Nadia · saved 19 June 2023 · Bitquery API v2

What it returns

Filters

The subscription

subscription ($network: evm_network, $limit: Int!, $from: String, $till: String, $token: String!) {
  EVM(network: $network) {
    Transfers(
      where: {Block: {Date: {since: $from, till: $till}}, Transfer: {Currency: {SmartContract: {is: $token}}}}
      limit: {count: $limit}
    ) {
      ChainId
      Transfer {
        Amount
        Sender
        Receiver
        Currency {
          Symbol
          SmartContract
        }
      }
      Block {
        Number
        Time
      }
      Transaction {
        Hash
      }
    }
  }
}

Variables

{
  "network": "eth",
  "limit": 10,
  "offset": 0,
  "from": "2023-01-12",
  "till": "2023-06-19",
  "address": "0x8ce578bad214d59aefafb49bd20408e81271796f",
  "token": "0x8ce578bad214d59aefafb49bd20408e81271796f"
}

Similar queries