Usage
Parameters
| Parameter | Type | Description |
|---|---|---|
transaction | AptosTransactionPayload | The transaction payload to sign and submit |
walletAccount | AptosWalletAccount | The wallet account to sign the transaction with |
client | DynamicClient (optional) | The Dynamic client instance. Only required when using multiple clients. |
Returns
Promise<{ hash: string }> - A promise that resolves to an object containing the transaction hash.
Errors
| Error | Description |
|---|---|
NotAptosProviderError | Thrown if the wallet account’s provider is not an Aptos provider |
Related functions
- signTransaction - Sign a transaction without submitting
- getAptosClient - Get the Aptos client from a wallet account