Find needed account

Those filters work in account_states and transactions tables

By address

User-friendly

Account states & other tables

Example of query account actual balance:

{
  account_states(
    account: {address_friendly: "EQAAFSPzZXu3pKo-VfQZRYcUjygur1-VLI9-wY9uwaobbUht"}
  ) {
    account_storage_balance_grams
  }
}

Transactions

Example of query account balance changing by transactions:

{
  transactions(
    address_friendly: "EQAAFSPzZXu3pKo-VfQZRYcUjygur1-VLI9-wY9uwaobbUht"
  ) {
    account_storage_balance_grams
    gen_utime
  }
}

Raw form only

Example of query account actual balance:

{
  account_states(
    address: "001523F3657BB7A4AA3E55F4194587148F282EAF5F952C8F7EC18F6EC1AA1B6D"
    workchain: 0
  ) {
    account_storage_balance_grams
  }
}

By code or data hash

We not suggest finding accounts by code hash, better use filter by get methods

{
  account_states(
    account_state_state_init_code_hash: "B61041A58A7980B946E8FB9E198E3C904D24799FFA36574EA4251C41A566F581"
  ) {
    address
    workchain
  }
}

By get methods

method_name in Func is compiling to crc16 integer, you can filter transactions or accounts states by get any get method:

Any get method

You can get account contain specific get method name crc16, for example all accounts with seqno method (85143):

{
  account_states(account_state_state_init_code_method_name: "get_wallet"){
    address
    workchain
  }
}

Predefined get methods

Some of the methods predefined and contain special columns to query them. Example of query all NFTs in low-level manner:

{
  account_states(account_state_state_init_code_has_get_nft_data: 1) {
    address
    workchain
  }
}

Last updated