Outbound transfers in native currency

Returns the latest transfer on Arbitrum, where transfer sender is 0x82af…bab1, currency smart contract is 0x82af…bab1 and block date since 2023-09-18: chain ID, block date, count, sum of transfer amount, sum of transfer amount in USD, currency symbol, smart contract and currency name.

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

What it returns

Filters

The query

query ($network: evm_network, $address: String!, $from: String, $till: String) {
  EVM(dataset: combined, network: $network) {
    Transfers(
      where: {Transfer: {Sender: {is: $address}, Currency: {Native: true}, Success: true}, Block: {Date: {since: $from, till: $till}}}
      orderBy: {descending: Block_Date}
    ) {
      ChainId
      Block {
        Date
      }
      count
      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": "arbitrum",
  "from": "2023-09-18",
  "till": "2023-09-20",
  "address": "0x82af49447d8a07e3bd95bd0d56f35241523fbab1"
}

Similar queries