Skip to main content

Get state of a nano contract.

GET 

/wallet/nano-contracts/state

Get state of a nano contract.

Request

Query Parameters

    id stringrequired

    ID of the nano contract to get the state from.

    fields[] string[]

    List of fields to retrieve the state.

    Examples:

    Only direct fields

    Example: token_uidtotalfinal_resultoracle_script

    balances[] string[]

    List of balances to retrieve from contract.

    Examples:

    Example of balances

    Example: 00000008f2ee2059a189322ae7cb1d7e7773dcb4fdc8c4de8767f63022b3731845

    calls[] string[]

    List of private method calls to execute and get result in the contract.

    Examples:

    Example of calls

    Example: private_method_1()private_method_2()

Header Parameters

    x-wallet-id stringrequired

    Define the key of the corresponding wallet it will be executed the request.

Responses

Success

Schema

    any

Loading...