Bidirectional-Ethereum-Wallet-Tracing

Gather (limit) transactions between two Ethereum network wallets in either direction

By Cam Crews · saved 2 November 2022 · Bitquery API v1

What it returns

Filters

The query

query ($walletA: String!, $walletB: String!, $limit: Int!) {
  ethereum(network: ethereum) {
    transfers(
      options: {desc: "block.timestamp.time", asc: "currency.symbol", limit: $limit}
      date: {since: null, till: null}
      amount: {gt: 0}
      receiver: {in: [$walletA, $walletB]}
      sender: {in: [$walletB, $walletA]}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      sender {
        address
        annotation
      }
      receiver {
        address
        annotation
      }
      currency {
        address
        symbol
      }
      amount
      amountInUSD: amount(in: USD)
      transaction {
        hash
      }
      external
    }
  }
}

Variables

{
  "limit": 25,
  "walletA": "0x500a746c9a44f68fe6aa86a92e7b3af4f322ae66",
  "walletB": "0x83a127952d266a6ea306c40ac62a4a70668fe3bd"
}

Similar queries