Usage
Parameters
| Parameter | Type | Description |
|---|---|---|
transactionBlock | Transaction | The Sui transaction block to sign and execute |
walletAccount | SuiWalletAccount | The wallet account to sign the transaction with |
options | SuiTransactionBlockResponseOptions (optional) | The fields to return in the execution response (e.g., transaction, effects, events). By default, only the transaction digest is returned. |
requestType | ExecuteTransactionRequestType (optional) | The request type to use for the transaction execution |
client | DynamicClient (optional) | The Dynamic client instance. Only required when using multiple clients. |
Returns
Promise<SuiSignAndExecuteTransactionBlockResult> - A promise that resolves to an object containing the transaction result.
Errors
| Error | Description |
|---|---|
NotSuiProviderError | Thrown if the wallet account’s provider is not a Sui provider |
MethodNotImplementedError | Thrown if the wallet provider does not implement this method |
Related functions
- signAndExecuteTransaction - The recommended replacement for this function
- signTransactionBlock - Sign a transaction block without executing