Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Account Query Fields

Akhila Raju edited this page Jul 26, 2018 · 2 revisions

The following fields can be queried on an account. For information on each field, search the Document Explorer in the EthQL demo for the 'Account' field. Fiddle with this query.

{
 account(address: "0x06012c8cf97BEaD5deAe237070F9587f8E7A266d"){
    address
    balance
    code
    type
    transactionCount
 }
}

The example query above returns the following:

{
 account(address: "0x06012c8cf97BEaD5deAe237070F9587f8E7A266d"){
    address: "0x06012c8cf97BEaD5deAe237070F9587f8E7A266d"
    balance: 115230519133500390000
    code: "0x6060604052600436106102a55763ffffffff60e060020a60003504166301..."
    type: null
    transactionCount: 1
 }
}