GetSmartContractSubState
Returns the state (or a part specified) of a smart contract address, represented in a JSON format.
Example Request
=== "cURL"
=== "Node.js"
=== "Java"
=== "Python"
=== "Go"
Example Response
Arguments
Parameter | Type | Required | Description |
---|---|---|---|
| string | Required |
|
| string | Required |
|
| string | Required |
|
| array | Required | State params |
State Params
Parameter | Type | Required | Description |
---|---|---|---|
| string | Required | A smart contract address of 20 bytes. |
| string | Can be empty | Name of the variable in the Smart Contract |
| JSON Array | Can be empty | If the variable is of map type, you can specify an index (or indices) |
The params
is a JSON array.
Example: "params"
:["fe001824823b12b58708bf24edd94d8b5e1cfcf7","admins",[\"0x9bfec715a6bd658fcb62b0f8cc9bfa2ade71434a\""]]
!!! note