Latest Inbound

Returns the latest transfer on Ethereum, where transfer receiver is 0xc02a…6cc2, currency smart contract is 0xc02a…6cc2 and block date since 2023-09-18: count, chain ID, block time, block number, transaction hash, sender, currency symbol and 4 more fields.

By Nadia · saved 18 February 2025 · run 8 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int, $address: String!, $from: String, $till: String) {
  EVM(dataset: combined, network: $network) {
    Transfers(
      where: {Transfer: {Receiver: {is: $address}}, Block: {Date: {since: $from, till: $till}}}
      orderBy: {descending: Block_Time}
      limit: {count: $limit}
    ) {
      count
      ChainId
      Block {
        Time
        Number
      }
      Transaction {
        Hash
      }
      Transfer {
        Sender
        Currency {
          Symbol
          SmartContract
          Name
        }
      }
      sum(of: Transfer_Amount)
      sum_usd: sum(of: Transfer_AmountInUSD)
    }
    token_info: Transfers(
      where: {Transfer: {Currency: {SmartContract: {is: $address}}}}
      limit: {count: 1}
    ) {
      Transfer {
        Currency {
          Symbol
          SmartContract
          Name
        }
      }
    }
  }
}

Variables

{
  "limit": 10,
  "network": "eth",
  "from": "2023-09-18",
  "till": "2023-09-20",
  "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
}

Similar queries