PlexCoin_newQuery

Returns the latest 10 transfers on Ethereum, where currency smart contract is 0xb320…DDD6, block date since 2017-01-01 and block date till 2017-12-31: chain ID, sum of transfer amount, transfer amount, sender, transfer ID, receiver, currency symbol and 5 more fields.

By Nikita Mahoviya · saved 7 August 2024 · Bitquery API v2

What it returns

Filters

The query

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

Variables

{"network":"eth","mempool":false,"limit":10,"offset":0,"from":"2017-01-01","till":"2017-12-31","token":"0xb3203DB25a01fa7950a860B42b899Ad7Da52DDD6","dateFormat":"%Y-%m","date_middle":"2017-07-02"}

Similar queries