dero_get_sc
Read smart contract state by unique 64-character SCID: retrieve source code and stored variables from the DERO blockchain. Use to inspect any DVM contract's current state.
Instructions
Read smart contract state (code and/or stored variables) by SCID via DERO.GetSC. This is the primary entry point for any contract inspection on DERO.
When to call: as the first step in any DVM contract investigation. Pair with dero_docs_search("DVM-BASIC") to interpret the returned code blob. PREFER citing dero_docs_search("smart contract") or dero_docs_get_page on a relevant DVM page so the user can interpret the contract's state model.
Input Requirements (CRITICAL):
scidMUST be exactly 64 hex characters (the contract id).codeis OPTIONAL (defaults to true). Set false to skip the source blob when you only need stored variables.variablesis OPTIONAL (defaults to true). Set false to skip variables when you only need the source.topoheightis OPTIONAL. Omit or use-1for the latest committed state.
Output: { code, balances, variables: { stringkeys, uint64keys }, ... }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Include contract source (default true) | |
| scid | Yes | 64-char hex Smart Contract ID | |
| variables | No | Include stored variables (default true) | |
| topoheight | No | Topo height; omit or use -1 for latest |