Avalanche transfers and transaction details

Returns 2500 transfers and transactions on Ethereum and Avalanche, where receiver is 0xb908…28b8, sender is 0xb908…28b8 and tx sender is 0xb908…28b8, sorted by block height: count, amount, currency symbol, currency address, transaction hash, gas value, sender address and 13 more fields.

By gaurav · saved 28 December 2023 · run 3 times · Bitquery API v1

What it returns

Filters

The query

query transfers_and_transactions($receivers: [String!]!, $senders: [String!]!, $txSenders: [String!]!, $incoming_transfers_start_height: Int!, $outgoing_transfers_start_height: Int!, $outgoing_transactions_start_height: Int!, $limit: Int!, $offset: Int!) {
  result: ethereum(network: avalanche) {
    incoming_transfers: transfers(
      receiver: {in: $receivers}
      height: {gteq: $incoming_transfers_start_height}
      options: {limit: $limit, asc: "block.height", offset: $offset}
    ) {
      count
      amount
      amount_usd: amount(in: USD)
      currency {
        symbol
        address
      }
      transaction {
        hash
        gasValue
      }
      sender {
        address
      }
      receiver {
        address
      }
      external
      block {
        height
        timestamp {
          iso8601
        }
      }
      success
      gasValue
    }
    outgoing_transfers: transfers(
      sender: {in: $senders}
      height: {gteq: $outgoing_transfers_start_height}
      options: {limit: $limit, asc: "block.height", offset: $offset}
    ) {
      count
      amount
      amount_usd: amount(in: USD)
      currency {
        symbol
        address
      }
      transaction {
        hash
        gasValue
      }
      sender {
        address
      }
      receiver {
        address
      }
      external
      block {
        height
        timestamp {
          iso8601
        }
      }
      success
      gasValue
    }
    outgoing_transactions: transactions(
      txSender: {in: $txSenders}
      height: {gteq: $outgoing_transactions_start_height}
      options: {limit: $limit, asc: "block.height", offset: $offset}
    ) {
      gasValue
      count
      block {
        height
        timestamp {
          iso8601
        }
      }
      creates {
        address
      }
      currency {
        address
        symbol
      }
      amount
      amount_usd: amount(in: USD)
      error
      gas
      gasPrice
      hash
      index
      nonce
      sender {
        address
      }
      success
      to {
        address
      }
    }
  }
}

Variables

{
  "receivers": [
    "0xb908d7d1f86b2f2f9154e0f048786fc7129d28b8"
  ],
  "senders": [
    "0xb908d7d1f86b2f2f9154e0f048786fc7129d28b8"
  ],
  "txSenders": [
    "0xb908d7d1f86b2f2f9154e0f048786fc7129d28b8"
  ],
  "incoming_transfers_start_height": 0,
  "outgoing_transfers_start_height": 0,
  "outgoing_transactions_start_height": 0,
  "limit": 2500,
  "offset": 0
}

Similar queries