query to get all transfers

Returns the latest 100000 transfers on Ethereum and BNB Chain, where currency is 0xc984…1a51, tx hash is 0xc7c0…2f20 and sender is 0x7424…9db7: count.

By Aleksey · saved 23 March 2023 · run 2 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    destinations: transfers(
      height: {gteq: 7591586}
      currency: {is: "0xc9849e6fdb743d08faee3e34dd2d1bc69ea11a51"}
      txHash: {is: "0xc7c026e88f54581a1e7ab2d9783512aabb4ba29cc829181033fe2a115d2c2f20"}
      options: {limit: 100000, desc: "date.date"}
      sender: {is: "0x742475d903b4e7d548ae141932f4928204799db7"}
    ) {
      count
      
      ...comparisonFields
    }
    sources: transfers(
      currency: {is: "0xc9849e6fdb743d08faee3e34dd2d1bc69ea11a51"}
      txHash: {is: "0xc7c026e88f54581a1e7ab2d9783512aabb4ba29cc829181033fe2a115d2c2f20"}

      height: {gteq: 7591586}
      options: {limit: 100000, desc: "date.date"}
      receiver: {is: "0x742475d903b4e7d548ae141932f4928204799db7"}
    ) {
      count
      ...comparisonFields
    }
  }
}

fragment comparisonFields on EthereumTransfers {
  currency {
    address
    name
    symbol
    tokenId
    tokenType
  }
  receiver {
    address
    annotation
    smartContract {
      contractType
    }
  }
  gasValue
  date {
    date
  }
  amount
  block {
    height
    timestamp {
      time(format: "%Y-%m-%d %H:%M:%S")
    }
  }
  transaction {
    hash
  }
  success
  sender {
    address
    annotation
    smartContract {
      contractType
    }
  }
}

Similar queries