Usage
Parameters
| Parameter | Type | Description |
|---|---|---|
transaction | Transaction | The Sui transaction to sign and execute (from @mysten/sui/transactions) |
walletAccount | SuiWalletAccount | The wallet account to sign the transaction with |
client | DynamicClient (optional) | The Dynamic client instance. Only required when using multiple clients. |
Returns
Promise<SuiSignAndExecuteTransactionResult> - A promise that resolves to an object containing the transaction result, including:
digest- The transaction digestsignature- The transaction signature
Errors
| Error | Description |
|---|---|
NotSuiProviderError | Thrown if the wallet account’s provider is not a Sui provider |
Related functions
- signTransaction - Sign a transaction without executing
- getSuiClient - Get the Sui client from a wallet account