Query
Use the query method to read the state of the network. query has the following parameters:
scopeis the scope of the query. This must be an account URL or a message ID. The message ID may be suffixed with an account or withunknown. For example:acc://accumulate.acmeacc://bbcea39f9c5cc8175fd5b12ab4b1173adf7c00755386f8a9db0801682034c67f@unknownacc://bbcea39f9c5cc8175fd5b12ab4b1173adf7c00755386f8a9db0801682034c67f@staking.acme/governance/1
querymay be used to query specific parts of an account or message's state.
Query an account
Parameters
Parameter
Optional
Description
account
URL of the account
include receipt
yes
Include a receipt for the account state
REST
GET /query/{account}?include_receipt={include receipt}JSON-RPC
{
"jsonrpc": "2.0",
"id": 1,
"method": "query",
"params": {
"scope": "<account>",
"query": {
"queryType": "default",
"includeReceipt": <include receipt>
}
}
}Examples
Last updated