by_txn

Returns 1000 transfers on Ethereum, where receiver is 0x96f1…c135, tx hash is 0xacaf…90b5 and sender is 0x96f1…c135, sorted by block timestamp time: receiver address, timestamp time, sender address, annotation, contract type, currency address, currency symbol and 3 more fields.

By Omkar_BQ · saved 6 November 2023 · Bitquery API v1

What it returns

Filters

The query

query (
  $network: EthereumNetwork!
  $address: String!
  $txHash: String!
  $limit: Int!
  $offset: Int!
  $from: ISO8601DateTime
) {
  ethereum(network: $network) {
    in: transfers(
      options: { asc: "block.timestamp.time", limit: $limit, offset: $offset }
      date: { since: $from }
      amount: { gt: 0 }
      receiver: { is: $address }
      txHash: { is: $txHash }
    ) {
      wallet: receiver {
        address
      }
      block {
        timestamp {
          time
        }
      }
      address: sender {
        address
        annotation
        smartContract {
          contractType
        }
      }
      currency {
        address
        symbol
        tokenType
      }
      amount
      transaction {
        hash
      }
    }
    out: transfers(
      options: { asc: "block.timestamp.time", limit: $limit, offset: $offset }
      date: { since: $from }
      amount: { gt: 0 }
      sender: { is: $address }
      txHash: { is: $txHash }
    ) {
      wallet: sender {
        address
      }
      block {
        timestamp {
          time
        }
      }
      address: receiver {
        address
        annotation
        smartContract {
          contractType
        }
      }
      currency {
        address
        symbol
        tokenType
      }
      amount
      transaction {
        hash
      }
    }
  }
}

Variables

{
  "limit": 1000,
  "offset": 0,
  "network": "ethereum",
  "address": "0x96f1d7febe73ecaa6ceb848af4771fb55a8dc135",
  "txHash": "0xacafa1b4be8020bc6764b9a96706a57df05057b4546346165230bc26a37290b5",
  "from": "2023-10-01"
}

Similar queries