Example of ETH balance in USD query
Returns 10 address details and transfers on Ethereum, where address is 0xa2da…b36f, date since 2017-01-01 and date till 2023-01-27, sorted by count in count out, highest first: balance, amount, count, currency address, currency symbol and token type.
What it returns
- balance
- amount
- count
- currency address
- currency symbol
- token type
Filters
- address is 0xa2da…b36f
- date since 2017-01-01
- date till 2023-01-27
- amount is above 0
The query
query ($network: EthereumNetwork!, $address: String!, $from: ISO8601DateTime, $till: ISO8601DateTime, $limit: Int!, $offset: Int!) {
ethereum(network: $network) {
address(address: {is: $address}) {
balance
usd: balance(in: USD)
}
transfers(
date: {since: $from, till: $till}
amount: {gt: 0}
any: [{receiver: {is: $address}}, {sender: {is: $address}}]
options: {limit: $limit, offset: $offset, desc: ["count_in", "count_out"], asc: "currency.symbol"}
) {
sum_in: amount(calculate: sum, receiver: {is: $address})
sum_in_usd: amount(in: USD, calculate: sum, receiver: {is: $address})
sum_out: amount(calculate: sum, sender: {is: $address})
sum_out_usd: amount(in: USD, calculate: sum, sender: {is: $address})
count_in: count(receiver: {is: $address})
count_out: count(sender: {is: $address})
currency {
address
symbol
tokenType
}
}
}
}
Variables
{
"limit": 10,
"offset": 0,
"network": "ethereum",
"address": "0xa2dae16d233cc2430ed917880776e2933517b36f",
"from": "2017-01-01",
"till": "2023-01-27T23:59:59",
"dateFormat": "%Y-%m"
}
Similar queries
- ETH_BALANCES · Ethereum · Address
- Balance of a ETH address · Ethereum · Address
- 13406-eth-enhanced_address_stats_p1 · Ethereum · Address
- Total Circulating Supply of a USDT Template · Ethereum · Address
- eth enhanced address stats · Ethereum · Address