test transfer with filters

Returns 10 transfers on Ethereum, where tx hash is 0x6272…a396, receiver is 0x493a…5f23 and currency is 0xbcd6…f1be: sender address, annotation, receiver address, amount, currency symbol, currency address, external and success.

By Divyasshree N · saved 4 August 2023 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $recr:String!, $cur:String!,$hash: String!, $limit: Int!, $offset: Int!) {
  ethereum(network: $network) {
    transfers(
      options: {limit: $limit, offset: $offset}
      amount: {gt: 0}
      txHash: {is: $hash}
      receiver:{is:$recr}
      currency:{is:$cur}
    ) {
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      amount
      amount_usd: amount(in: USD)
      currency {
        symbol
        address
      }
      external
      success
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "cur":"0xbcd657377d4086cc582b215294c3611b997ef1be",
  "recr":"0x493a30437c570f2d39c24e35cce2934fa81f5f23",
  "hash": "0x627237a397a071b30e8334d5f72fe5b01e4cec48e03955f85960528b46cca396"
}

Similar queries