Query to Tezos balance

Returns address details and transactions on tezos, where address is tz1RRi…WNSq, sender is tz1RRi…WNSq and receiver is tz1RRi…WNSq: address, balance, count, minimum of date, maximum of date and maximum of block.

By Aleksey · saved 6 February 2023 · run 2 times · Bitquery API v1

What it returns

Filters

The query

query ($address: String!) {
    tezos(network: tezos) {
    address(address:{is:$address}) {
      address
      balance
      usd: balance(in: USD)
    }
  transactions(sender:{is:$address}){
    count
        first_time: minimum(of: date)
        last_time: maximum(of: date)
  }
      ins: transfers(receiver: {is: $address}) {
        count
        first_time: minimum(of: date)
        last_time: maximum(of: date)
        last_amt: maximum(of: block get: value)
        last_currency: maximum(of: block, get: currencySymbol)
      }
      outs: transfers(sender: {is: $address}) {
        count
        first_time: minimum(of: date)
        last_time: maximum(of: date)
        last_amt: maximum(of: block get: value)
        last_currency: maximum(of: block, get: currencySymbol)
      }
    }
  }

Variables

{"address": "tz1RRimWuJrU4N5SPftTBbxCxjrd8GNGWNSq", "network": "bitcoin"}

Similar queries