Account
?module=account
Last updated
?module=account
Last updated
https://
quaiscan.io/api?module=account
quai_get_balance
Mimics Quai Network JSON RPC's quai_getBalance
Example:
Parameter | Description |
---|---|
balance
Many chains use their own native tokens. On Quai Network, this will return the result in "Quai" or "Qi". Results are returned in its (quai) or qits (qi).
Example:
Also available through a GraphQL address
query.
If the balance hasn't been updated recently, the node is double-checked to fetch the absolute latest balance. This will not be reflected in the current request, but once it is updated, subsequent requests will show the updated balance. If you want to know if there is a check for another balance, use the balancemulti
action. That contains a property called stale
that will let you know to recheck that balance in the near future.
balancemulti
Example:
Also available through a GraphQL 'addresses' query
If the balance hasn't been updated in a long time, the node is double checked to fetch the absolute latest balance. This is not reflected in the current request, but once it is updated, subsequent requests will show the updated balance. The stale
attribute will be set to true
if a new balance is being fetched.
pendingtxlist
Example:
txlist
Maximum of 10,000 transactions. Also available through a GraphQL 'address' query. For faster results, specify a smaller block range to search using the startblock
and endblock
parameters
Example:
txlistinternal
Up to a maximum of 10,000 internal transactions. Also available through a GraphQL 'transaction' query. For faster results, specify a smaller block range to search using the start_block and end_block parameters.
Example:
tokentx
Up to a maximum of 10,000 token transfer events. Also available through the GraphQL token_transfers
query.
Example:
tokennfttx
Example:
Usage:
To fetch ERC-721 token transfers by address, specify address
parameter
To fetch ERC-721 token transfers by token, specify contractaddress
parameter
To fetch ERC-721 token transfers by address filtered by token, specify both address
and contractaddress
parameters
tokenbalance
Example:
tokenlist
Example:
getminedblocks
Example:
listaccounts
Lists accounts and native balances, sorted ascending by the time they were first seen by the explorer.
Example:
If the balance hasn't been updated in a long time, the node is double checked to fetch the absolute latest balance. This is not reflected in the current request, but once it is updated, subsequent requests will show the updated balance. The stale
attribute will be set to true
if a new balance is being fetched.
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
address
string
containing the address hash.
block
optional. Block number as a string, or latest
, earliest
or pending
Latest is the latest balance in a consensus block. Earliest is the first recorded balance for the address. Pending is the latest balance in a consensus or nonconsensus block.
address
string
containing the address hash.
address
string
containing the address hash, comma separated. Max 20 addresses.
address
string
containing the address hash.
page
optional integer
representing the page number used for pagination. 'offset' must also be provided.
offset
optional integer
representing number of transactions returned per page. page
must also be provided.
address
string
containing the address hash.
sort
optional sorting preference, asc
for ascending and desc
for descending. Descending is default.
startblock
optional integer
block number to start transaction search
endblock
optionalinteger
block number to stop transaction search.
page
optional integer
representing the page number used for pagination. offset
must also be provided.
offset
optional integer
representing number of transactions returned per page. page
must also be provided.
filter_by
optional string representing the field to filter by. Values include to
and from
. If none provided returns transactions that match to, from, or contract address.
start_timestamp
optional starting block unix timestamp.
end_timestamp
optional ending block unix timestamp.
txhash
string
representing the transaction hash to check for internal transactions
address
optional string
containing the address hash.
sort
optional sorting preference, asc
for ascending and desc
for descending. Descending is default. Only available if 'address' is provided.
startblock
optional integer
block number to start transaction search. Only available if 'address' is provided.
endblock
optionalinteger
block number to stop transaction search. Only available if 'address' is provided.
page
optional integer
representing the page number used for pagination. offset
must also be provided. Only available if 'address' is provided.
offset
optional integer
representing number of transactions returned per page. page
must also be provided. Only available if 'address' is provided.
address
string
containing the address hash.
contract address
optional string
with the token contract address to identify a contract.
sort
optional sorting preference, asc
for ascending and desc
for descending. Descending is default.
startblock
optional integer
block number to start transaction search
endblock
optionalinteger
block number to stop transaction search.
page
optional integer
representing the page number used for pagination. offset
must also be provided.
offset
optional integer
representing number of transactions returned per page. page
must also be provided.
address
string
containing the address hash.
contractaddress
optional string
with the token contract address to identify a contract.
sort
optional sorting preference, asc
for ascending and desc
for descending. Descending is default.
startblock
optional integer
block number to start transaction search
endblock
optional integer
block number to stop transaction search.
page
optional integer
representing the page number used for pagination. offset
must also be provided.
offset
optional integer
representing number of transactions returned per page. page
must also be provided.
contract address
string
containing the contract address hash.
address
string
containing the account address hash to retrieve balance for.
address
string
containing the account address hash.
address
string
containing the address hash.
page
optional integer
representing the page number used for pagination. 'offset' must also be provided.
offset
optional integer
representing number of transactions returned per page. page
must also be provided.
page
optional integer
representing the page number used for pagination. 'offset' must also be provided.
offset
optional integer
representing number of transactions returned per page. page
must also be provided.