test for address controller

Returns one transfer on Arbitrum, where transfer sender is 0xf3d0…165c and currency smart contract is 0xf3d0…165c: smart contract, currency symbol, currency name, decimals, protocol name, sender and chain ID.

By Nadia · saved 14 August 2023 · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $address: String!) {
  EVM(dataset: archive, network: $network) {
    addres: Transfers(
      where: {Transfer: {Sender: {is: $address}}}
      limit: {count: 1}
    ) {
      Transfer {
        Currency {
          SmartContract
          Symbol
          Name
          Decimals
          ProtocolName
        }
        Sender
      }
      ChainId
    }
    smart_contract: Transfers(
      where: {Transfer: {Currency: {SmartContract: {is: $address}}}}
      limit: {count: 1}
    ) {
      Transfer {
        Currency {
          SmartContract
          Symbol
          Name
          Decimals
          ProtocolName
        }
        Sender
      }
      ChainId
    }
  }
}

Variables

{
  "network": "arbitrum",
  "addresss": "0xf3d00a2559d84de7ac093443bcaada5f4ee4165c",
  "address": "0xf3d00a2559d84de7ac093443bcaada5f4ee4165c"
}

Similar queries