invoke
Calls one or more contracts on-chain and returns the relayed transaction hash.
Parameters
1. invocations (required)
InvocationArguments[]
Each invocation defines a contract hash, operation, arguments, and optional abortOnFail.
2. signers (optional)
Signer[]
Witness scope information for the transaction.
3. attributes (optional)
TransactionAttribute[]
Supported standard attributes include HighPriority and OracleResponse.
4. options (optional)
TransactionOptions
type TransactionOptions = {
suggestedSystemFee?: Integer;
extraSystemFee?: Integer;
validUntilBlock?: number;
};Returns
Promise<UInt256>
The relayed transaction hash.
Errors
Code
Name
Description
10002
INVALID
One or more inputs are invalid.
10004
FAILED
Contract execution failed.
10005
TIMEOUT
The request timed out.
10006
CANCELED
The user rejected the transaction.
10008
RPC_ERROR
The RPC server returned an error.
Example
Request
Response
最后更新于