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.
What it returns
- address
- balance
- count
- minimum of date
- maximum of date
- maximum of block
Filters
- address is tz1RRi…WNSq
- sender is tz1RRi…WNSq
- receiver is tz1RRi…WNSq
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
- Tezos balance api · Tezos · Address
- xtz_balance · Tezos · Address
- xtz_staking · Tezos · Address
- Tezos Wallet Portfolio · Tezos · Address
- tezos avg, sum & sum in usd fees · Tezos · Transactions