eth enhanced address stats

Returns one address detail on Ethereum, sorted by value, highest first: balance, iso8601, address address, annotation, amount, count big int, currency name and 5 more fields.

By gaurav · saved 7 April 2025 · run 2 times · Bitquery API v1

What it returns

The query

query eth_enhanced_address_stats($address: String!) {
  ethereum(network: ethereum) {
    address(address: {is: $address}) {
      balance
      balance_usd: balance(in: USD)
    }
    addressStats(address: {is: $address}) {
      address {
        firstTxAt {
          iso8601
        }
        lastTxAt {
          iso8601
        }
        firstTransferAt {
          iso8601
        }
        lastTransferAt {
          iso8601
        }
        address {
          address
          annotation
        }
      }
    }
    in_txs: transactions(txTo: {is: $address}) {
      total_value: amount(calculate: sum)
      total_value_usd: amount(calculate: sum, in: USD)
      count: countBigInt
    }
    out_txs: transactions(txSender: {is: $address}) {
      total_value: amount(calculate: sum)
      total_value_usd: amount(calculate: sum, in: USD)
      count: countBigInt
    }
    in_transfers: transfers(receiver: {is: $address}) {
      total_value: amount(calculate: sum)
      total_value_usd: amount(calculate: sum, in: USD)
      count: countBigInt
      currency {
        name
        symbol
      }
    }
    out_transfers: transfers(sender: {is: $address}) {
      total_value: amount(calculate: sum)
      total_value_usd: amount(calculate: sum, in: USD)
      count: countBigInt
      currency {
        name
        symbol
      }
    }
    first_out_tx: transactions(
      txSender: {is: $address}
      options: {asc: ["block.height", "index"], limit: 1}
    ) {
      block {
        height
        timestamp {
          iso8601
        }
      }
      index
    }
    first_out_transfer: transfers(
      sender: {is: $address}
      options: {asc: "block.height", limit: 1}
    ) {
      block {
        height
        timestamp {
          iso8601
        }
      }
    }
    last_out_tx: transactions(
      txSender: {is: $address}
      options: {desc: ["block.height", "index"], limit: 1}
    ) {
      block {
        height
        timestamp {
          iso8601
        }
      }
      index
    }
    last_out_transfer: transfers(
      sender: {is: $address}
      options: {desc: "block.height", limit: 1}
    ) {
      block {
        height
        timestamp {
          iso8601
        }
      }
    }
    first_in_tx: transactions(
      txTo: {is: $address}
      options: {asc: ["block.height", "index"], limit: 1}
    ) {
      block {
        height
        timestamp {
          iso8601
        }
      }
      index
    }
    first_in_transfer: transfers(
      receiver: {is: $address}
      options: {asc: "block.height", limit: 1}
    ) {
      block {
        height
        timestamp {
          iso8601
        }
      }
    }
    last_in_tx: transactions(
      txTo: {is: $address}
      options: {desc: ["block.height", "index"], limit: 1}
    ) {
      block {
        height
        timestamp {
          iso8601
        }
      }
      index
    }
    last_in_transfer: transfers(
      receiver: {is: $address}
      options: {desc: "block.height", limit: 1}
    ) {
      block {
        height
        timestamp {
          iso8601
        }
      }
    }
    lowest_out_tx: transactions(
      options: {limit: 1, asc: "value"}
      txSender: {is: $address}
    ) {
      value: amount
      value_usd: amount(in: USD)
      hash
    }
    lowest_out_transfer: transfers(
      sender: {is: $address}
      options: {asc: "value", limit: 1}
    ) {
      value: amount
      value_usd: amount(in: USD)
      transaction {
        hash
      }
      currency {
        name
        symbol
      }
    }
    highest_out_tx: transactions(
      options: {limit: 1, desc: "value"}
      txSender: {is: $address}
    ) {
      value: amount
      value_usd: amount(in: USD)
      hash
    }
    highest_out_transfer: transfers(
      sender: {is: $address}
      options: {desc: "value", limit: 1}
    ) {
      value: amount
      value_usd: amount(in: USD)
      transaction {
        hash
      }
      currency {
        name
        symbol
      }
    }
    lowest_in_tx: transactions(
      options: {limit: 1, asc: "value"}
      txTo: {is: $address}
    ) {
      value: amount
      value_usd: amount(in: USD)
      hash
    }
    lowest_in_transfer: transfers(
      receiver: {is: $address}
      options: {asc: "value", limit: 1}
    ) {
      value: amount
      value_usd: amount(in: USD)
      transaction {
        hash
      }
      currency {
        name
        symbol
      }
    }
    highest_in_tx: transactions(
      options: {limit: 1, desc: "value"}
      txTo: {is: $address}
    ) {
      value: amount
      value_usd: amount(in: USD)
      hash
    }
    highest_in_transfer: transfers(
      receiver: {is: $address}
      options: {desc: "value", limit: 1}
    ) {
      value: amount
      value_usd: amount(in: USD)
      transaction {
        hash
      }
      currency {
        name
        symbol
      }
    }
  }
}

Similar queries