Get Contract State
The Contract state from a contract on the network
This method will use 20 Compute Units.
Returns a list of all contract's slots. If no timestamp is provided, returns the current state.
Path parameters
contractIdOrAddressstringRequiredPattern:
The ID or hex encoded EVM address (with or without 0x prefix) associated with this contract.
^(\d{1,10}\.){0,2}(\d{1,10}|(0x)?[A-Fa-f0-9]{40})$Query parameters
limitinteger · int32 · min: 1 · max: 100OptionalDefault:
The maximum number of items to return
25Example: 2orderundefined · enumOptionalDefault:
The order in which items are listed
ascExample: descPossible values: slotstringOptionalExample:
The slot's number
{"summary":"--","value":""}Pattern: ^((eq|gte?|lte?)\:)?(0x)?[0-9A-Fa-f]{1,64}$timestampstringOptionalExample:
The timestamp at which the contract state is
1234567890.0000007Pattern: ^\d{1,10}(.\d{1,9})?$Responses
200
OK
application/json
400
Invalid parameter
application/json
404
Not Found
application/json
get
/api/v1/contracts/{contractIdOrAddress}/stateLast updated
Was this helpful?