klaytn query address stats
Returns transfers and transactions on Ethereum and klaytn, where caller is 0x87f7…5db3, address is 0x87f7…5db3 and date since 2000-04-04, sorted by receive from count send to count, highest first: minimum of block, maximum of block, amount, count, gas value, currency name, currency symbol and balances value.
What it returns
- minimum of block
- maximum of block
- amount
- count
- gas value
- currency name
- currency symbol
- balances value
Filters
- caller is 0x87f7…5db3
- address is 0x87f7…5db3
- date since 2000-04-04
- date till 2022-04-13
- amount is above 0
The query
query ($network: EthereumNetwork!, $address: String!, $from: ISO8601DateTime, $till: ISO8601DateTime, $offset: Int!) {
ethereum(network: $network) {
transfers(
date: {since: $from, till: $till}
amount: {gt: 0}
any: [{receiver: {is: $address}}, {sender: {is: $address}}]
options: {offset: $offset, desc: ["receive_from_count", "send_to_count"]}
) {
first_transfer_at: minimum(of: block, get: date)
last_transfer_at: maximum(of: block, get: date)
sum_in: amount(calculate: sum, receiver: {is: $address}, in: ETH)
sum_out: amount(calculate: sum, sender: {is: $address}, in: USD)
receive_from_count: count(uniq: senders, receiver: {is: $address})
send_to_count: count(uniq: receivers, sender: {is: $address})
receive_from_currencies: count(uniq: currencies, receiver: {is: $address})
send_to_currencies: count(uniq: currencies, sender: {is: $address})
days_with_recieved: count(uniq: dates, receiver: {is: $address})
days_with_sent: count(uniq: dates, sender: {is: $address})
days_with_transfers: count(uniq: dates)
send_tx_count: count(uniq: txs, sender: {is: $address})
receive_tx_count: count(uniq: txs, receiver: {is: $address})
}
transactions(any: [{txTo: {is: $address}}, {txSender: {is: $address}}]) {
fee_amount: gasValue
first_tx_at: minimum(of: block, get: date)
last_tx_at: maximum(of: block, get: date)
}
smartContractCalls(caller: {is: $address}) {
call_tx_count: count
minimum(of: block, get: date)
}
balancedata: address(address: {is: $address}) {
balances {
currency {
name
symbol
}
value
}
}
}
}
Variables
{
"limit": 1000,
"offset": 0,
"network": "klaytn",
"address": "0x87f7071dc67e1c5f6b02256c449669cc93375db3",
"from": "2000-04-04",
"till": "2022-04-13T23:59:59",
"dateFormat": "%Y-%m-%d"
}
Similar queries
- Klaytn — Balance of an address at a past date · Klaytn · Transfers
- Klaytn — Latest token transfers · Klaytn · Transfers
- internal_transactions_ · Klaytn · Transfers
- KlayBalance___ · Klaytn · Transfers
- SSG transaction extraction · Klaytn · Transfers