Coinpath with Amounts in USD

Returns money flows on Ethereum, where initial address is 0x005e…7223, initial date since 2018-10-01 and initial date till 2018-10-31, sorted by amount USD, highest first: sender address, annotation, contract type, currency symbol, currency name, receiver address, amount and 3 more fields.

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

What it returns

Filters

The query

query ($network: EthereumNetwork!, $addresses: [String!], $inboundDepth: Int!, $outboundDepth: Int!, $limit: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    inbound: coinpath(
      initialAddress: {in: $addresses}
      depth: {lteq: $inboundDepth}
      options: {direction: inbound, asc: "depth", desc: "amountUSD", limitBy: {each: "depth", limit: $limit}}
      initialDate: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
        smartContract {
          contractType
          currency {
            symbol
            name
          }
        }
      }
      receiver {
        address
      }
      amount
      amountUSD: amount(in: USD)
      currency {
        symbol
        address
      }
      depth
      count
    }
    outbound: coinpath(
      initialAddress: {in: $addresses}
      depth: {lteq: $outboundDepth}
      options: {asc: "depth", desc: "amountUSD", limitBy: {each: "depth", limit: $limit}}
      initialDate: {since: $from, till: $till}
    ) {
      sender {
        address
        annotation
        smartContract {
          contractType
          currency {
            symbol
            name
          }
        }
      }
      receiver {
        address
      }
      amount
      amountUSD: amount(in: USD)
      currency {
        symbol
        address
      }
      depth
      count
    }
  }
}

Variables

{
  "inboundDepth": 1,
  "outboundDepth": 1,
  "limit": 500,
  "offset": 0,
  "network": "ethereum",
  "addresses": ["0x005e288d713a5fb3d7c9cf1b43810a98688c7223"],
  "from": "2018-10-01",
  "till": "2018-10-31T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries