gg- test_id 2 bit queries

test case

Returns money flows on Ethereum and BNB Chain, where initial address is 0x4982…89cb, currency is BNB and time since 2023-06-01, sorted by amount, highest first: sender address, annotation, contract type, currency symbol, currency name, receiver address, amount and 2 more fields.

By gaurav · saved 21 September 2023 · run 2 times · Bitquery API v1

What it returns

Filters

The query

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

Variables

{
    "inboundDepth": 1,
    "outboundDepth": 1,
    "limit": 5,
    "offset": 0,
    "network": "bsc",
    "address": "0x4982085c9e2f89f2ecb8131eca71afad896e89cb",
    "currency": "BNB",
    "from": "2023-06-01T00:00:00Z",
    "till": "2023-09-01T23:59:59Z",
    "dateFormat": "%Y-%m-%d"
}

Similar queries