invokeReadMulti

Execute a contract invocation in read-only mode.

Input Arguments

Parameter
Description

scriptHash: string

Script hash of the smart contract to invoke a read on

operation: string

Operation on the smart contract to call

invokeReadArgs: iArgument[]

Any input arguments for the operation

Success Response

The wallet will return the direct response from the RPC node.

Parameter
Description

script: string

The script which was run

state: string

Status of the executeion

gas_consumed: string

Estimated amount of GAS to be used to execute the invocation. (Up to 10 free per transaction)

stack: iArgument[]

An array of response arguments

Argument

Parameter
Description

type: 'String' | 'Boolean' | 'Hash160' | 'Hash256' | 'Integer' | 'ByteArray' | 'Array' | 'Address'

The type of the argument with you are using

value: string

String representation of the argument which you are using

Error Response

Parameter
Description

type: string

The type of error which has occured

description: string

A description of the error which has occured

data: string

Any raw data associated with the error

Example

Request

Response

最后更新于

这有帮助吗?