Example of query all currencies in coinpath

Returns money flows on Ethereum, where initial address is 0x68b3…fc45, date since 2023-10-09 and date till 2023-10-16, sorted by amount, highest first: transaction hash, amount, currency symbol, currency address, depth and count.

By Aleksey · saved 16 October 2023 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $address: String!, $inboundDepth: Int!,  $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    inbound: coinpath(
      initialAddress: {is: $address}
      depth: {lteq: $inboundDepth}
      options: {direction: inbound, asc: "depth", desc: "amount", limitBy: {each: "currency.address", limit: 1}}
      date: {since: $from, till: $till}
    ) {
      transaction{
        hash
      }
      amount(in: USD)
      currency {
        symbol
        address
      }
      depth
      count
    }
  }
}

Variables

{
  "inboundDepth": 1,
  "outboundDepth": 1,
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "address": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45",
  "currency": "ETH",
  "from": "2023-10-09",
  "till": "2023-10-16T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries