The contract state from a contract on the network
Returns a list of all contract's slots. If no timestamp is provided, returns the current state.
Path parameters
Contract or account identifier in format shard.realm.num, realm.num, num or a 20-byte EVM address (with or without 0x prefix).
Query parameters
The maximum number of items to return
The order in which items are listed
The slot's number
The consensus timestamp of the contract state as a Unix timestamp in seconds.nanoseconds format with an optional comparison operator. See unixtimestamp.com for a simple way to convert a date to the 'seconds' part of the Unix time.
Response
OK
Example response
{
"state": [
{
"address": "0000000000000000000000000000000000001f41",
"contract_id": "0.0.2",
"timestamp": "1586567700.453054000",
"slot": "0x00000000000000000000000000000000000000000000000000000000000000fa",
"value": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
}
]
}Changes
Changed in 2 of the 53 revisions of this API.42
- ○
removed the non-success response with the status
404response-non-success-status-removed
- ○
- ▲
the response property
_status/messages/items/databecame nullable for the status400response-property-became-nullable
- ▲
the response property
_status/messages/items/detailbecame nullable for the status400response-property-became-nullable
- ▲
the response property
links/nextbecame nullable for the status200response-property-became-nullable
- ▲
the response property
state/items/contract_idbecame nullable for the status200response-property-became-nullable
- ○
added the non-success response with the status
404response-non-success-status-added
This revision also has 22 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲