invokeMulti
Invoke Multi functions the same as Invoke, but accepts inputs to execute multiple invokes in the same transaction.
Input Arguments
Parameter | Description |
---|---|
| If a fee is specified then the wallet SHOULD NOT override it, if a fee is not specified the wallet SHOULD allow the user to attach an optional fee |
| Network alias to submit this request to. |
Used to specify the exact UTXO's to use for attached assets. If this is provided fee and attachedAssets will be ignored | |
Array of contract invoke inputs | |
| If this flag is set to True, the wallet provider will return the signed transaction rather than broadcasting to a node. |
Optional list of tx attribute hash values to be added |
InvokeArguments
Parameter | Description |
---|---|
| The script hash of the contract that you wish to invoke |
| The operation on the smart contract that you wish to call. This can be fetched from the contract ABI |
A list of arguments necessary to perform on the operation you wish to call | |
| Describes the assets to attach with the smart contract, e.g. attaching assets to mint tokens during a token sale |
| Adds the instruction to invoke the contract verifican trigger |
Argument
Parameter | Description |
---|---|
| The type of the argument with you are using |
| String representation of the argument which you are using |
TxHashAttribute
Parameter | Description |
---|---|
| The type of the argument with you are using |
| String representation of the argument which you are using |
| Attribute usage value |
AssetIntentOverrides
Parameter | Description |
---|---|
A list of UTXO inputs to use for this transaction | |
A list of UTXO outputs to use for this transaction |
AssetInput
Parameter | Description |
---|---|
| Transaction id to be used as input |
| Index of the UTXO, can be found from transaction details |
AssetOutput
Parameter | Description |
---|---|
| Asset of the UTXO |
| Address to receive the UTXO |
| String representation of double or integer value to be used as output |
Success Response
In the case where the "broadcastOverride" input argument is not set, or set to false.
Parameter | Description |
---|---|
| The transaction ID of the invocation |
| The node which the transaction was broadcast to. Returned if transaction is broadcast by wallet provider |
In the case where the "broadcastOverride" input argument is set to True.
Parameter | Description |
---|---|
| The transaction ID of the invocation |
| The serialized signed transaction. Only returned if the broadcastOverride input argument was set to True |
Error Response
Parameter | Description |
---|---|
| The type of error which has occured |
| A description of the error which has occured |
| Any raw data associated with the error |
Example
Request
Response
最后更新于