queryState

suspend fun queryState(address: String): JSONArray?

Read a deployed contract's on-chain state as parsed JSON.

Returns the state tree with cells decoded as hex, text (if UTF-8), and numbers. Example for bboard: [{"type":"cell","hex":"01...","number":1}, {"type":"cell","hex":"...","text":"Hello"}, ...]

Return

Parsed state as a JSONArray or JSONObject

Parameters

address

Contract address (64 hex chars)