Quick Reference
View Account
Returns basic account information.- method:
query - params:
request_type: view_account,finalityORblock_id,account_id
- JSON
- JavaScript
- HTTPie
Example response
Example response
View Account Changes
Returns account changes from transactions in a given account.- method:
changes - params:
changes_type: account_changes,account_ids,finalityORblock_id
- JSON
- JavaScript
- HTTPie
View Contract Code
Returns the contract code (Wasm binary) deployed to the account. The returned code is encoded in base64.- method:
query - params:
request_type: view_code,finalityORblock_id,account_id
- JSON
- JavaScript
- HTTPie
View Contract State
Returns the state (key-value pairs) of a contract based on a key prefix (base64 encoded). Pass an empty string forprefix_base64 to return the entire state.
- method:
query - params:
request_type: view_state,finalityORblock_id,account_id,prefix_base64
- JSON
- JavaScript
- HTTPie
View Contract State Changes
Returns state change details of a contract based on a key prefix (base64 encoded).- method:
changes - params:
changes_type: data_changes,account_ids,key_prefix_base64,finalityORblock_id
- JSON
- JavaScript
- HTTPie
View Contract Code Changes
Returns code changes made when deploying a contract. Change is returned as a base64 encoded WASM file.- method:
changes - params:
changes_type: contract_code_changes,account_ids,finalityORblock_id
- JSON
- JavaScript
- HTTPie
Call a Contract Function
Allows you to call a contract method as a view function (read-only).- method:
query - params:
request_type: call_function,finalityORblock_id,account_id,method_name,args_base64
- JSON
- JavaScript
- HTTPie