invokeRead
最后更新于
最后更新于
Execute a contract invocation in read-only mode.
Parameter | Description |
---|---|
The wallet will return the direct response from the RPC node.
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Field | Description |
---|---|
Parameter | Description |
---|---|
Field | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
Parameter | Description |
---|---|
0
Only transactions are signed and no contracts are allowed to use this signature.
1
It only applies to the chain call entry. That is, if the user invokes contract A, and then contract A calls contract B, only contract A can use the signature. It is recommended as the default value for the wallet.
16
Custom contract. The signature can be used in the specified contract. It can be used in conjunction with CalledByEntry.
32
Custom contract groups that can be used in a specified contract group. It can be used in conjunction with CalledByEntry.
64
Indicates that the current context must satisfy the specified rules.
128
Global. The risk is extremely high because the contract may transfer all assets in the address. Only choose it when the contract is extremely trusted.
type: 'Boolean'
The type of the BooleanWitnessCondition.
expression: boolean
The expression of the BooleanWitnessCondition.
type: 'ScriptHash'
The type of the ScriptHashWitnessCondition.
hash: string
The hash of the ScriptHashWitnessCondition.
type: 'Group'
The type of the GroupWitnessCondition.
group: string
The group of the GroupWitnessCondition.
type: 'CalledByEntry'
The type of the CalledByEntryWitnessCondition.
type: 'CalledByContract'
The type of the CalledByContractWitnessCondition.
hash: string
The hash of the CalledByContractWitnessCondition.
type: 'CalledByGroup'
The type of the CalledByGroupWitnessCondition.
group: string
The group of the CalledByGroupWitnessCondition.
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
scriptHash: string
Script hash of the smart contract to invoke a read on
operation: string
Operation on the smart contract to call
Any input arguments for the operation
Sender and the effective scope of signature
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)
An array of response arguments
type: 'String' | 'Boolean' | 'Hash160' | 'Hash256' | 'Integer' | 'ByteArray' | 'Array' | 'Address'
The type of the argument with you are using. The type is an array, please see the example for the value.
value: string
String representation of the argument which you are using
account: string
scriptHash of the address
Effective range of the signature
allowedContracts?: Array
Contracts of the signature can take effect, if scopes is CustomContracts
allowedGroups?: Array
Pubkeys of the signature can take effect, if scopes is CustomGroups
Custom rules for witness to adhere by, if scopes is WitnessRules
action: 'Deny' | 'Allow'
Represents the action of a WitnessRule.
Represents the condition of a WitnessRule.
Indicates that the condition will always be met or not met.
Indicates that all conditions must be met.
Reverse another condition.
Indicates that any of the conditions meets.
Indicates that the condition is met when the current context has the specified script hash.
Indicates that the condition is met when the current context has the specified group.
Indicates that the condition is met when the current context is the entry point or is called by the entry point.
Indicates that the condition is met when the current context is called by the specified contract.
Indicates that the condition is met when the current context is called by the specified group.
type: 'And'
The type of the AndWitnessCondition.
The expressions of the AndWitnessCondition.
type: 'Not'
The type of the NotWitnessCondition.
The expression of the NotWitnessCondition.
type: 'Or'
The type of the OrWitnessCondition.
The expressions of the OrWitnessCondition.