signAndSubmitTransaction
Signs and submits an Aptos transaction to the network in a single step. This is the most common way to execute transactions on Aptos.Usage
React
Parameters
Returns
Promise<{ hash: string }> - A promise that resolves to an object containing the transaction hash.
Errors
Related functions
- signTransaction - Sign a transaction without submitting
- getAptosClient - Get the Aptos client from a wallet account