Fetch Account State (Hex Format)
Use this endpoint to get the state for a specific account in hex format. Defaults to latest block if no block hash is provided.
Params
address
: Account address (hex-encoded string)
Response
-
Account state information in hex format, including:
- Account information
Still in progress
Example Request
The hex-encoded
params must be supplied without the 0x
prefix.
CURL
curl "https://dev.nexus.avail.tools/account-hex?app_account_id=31b8a7e9f916616a8ed5eb471a36e018195c319600cbd3bbe726d1c96f03568d"
Sample Response:
{
{
"account": {
"statement": "d48b446b8785f787021914f1bea9d6ec04e9480806e56acf9ee17f1bb23bad48",
"state_root": "3da9b49550aa73ea070e11596e326446745f582a453ff2b4eb1f2a2b0a25e853",
"start_nexus_hash": "abd2f5b8ae0c93601c14d67fa68984f7ad33cce32e082663824ed115c2426f5d",
"last_proof_height": 125671,
"height": 503
},
"proof": [
"398ae55968b84919e073ea058ce2d6a4e434b544dc8a9e7c27113644c04a4cd2",
"0000000000000000000000000000000000000000000000000000000000000000",
"0000000000000000000000000000000000000000000000000000000000000000",
"1e804eefa21c4d8261f83a3207154f8512a75de60622434650468dda189402ed",
"0000000000000000000000000000000000000000000000000000000000000000",
"0000000000000000000000000000000000000000000000000000000000000000"
],
"value_hash": "e8cb4b63b6509cce4ed0f4f49267632830c54f724413a75fd1323398b203e174",
"nexus_header": {
"parent_hash": "21be1d236b00babc9751852be1b234a0006da45727cc79a872ed01757df36299",
"prev_state_root": "ac74e8bbe7956dbf625ddec73bc5e686b2afdf0d334b88faa9dfd7a1baf9f15a",
"state_root": "ac74e8bbe7956dbf625ddec73bc5e686b2afdf0d334b88faa9dfd7a1baf9f15a",
"avail_header_hash": "bfb7725d42acecb987f59161c9f9990d2cace98edc441f729b84e6799df556ae",
"number": 144369
}
}
}
Last updated on