sendTransaction method that can be used to sign and submit a transaction to the chain using the connected Abstract Global Wallet.
Transactions are signed by the approved signer account (EOA) of the Abstract Global Wallet and sent from the AGW smart contract itself.
Usage
Parameters
The sender address of the transaction.By default, this is set as the Abstract Global Wallet smart contract address.
Unique number identifying this transaction.Learn more in the handling nonces section.
Address of the
paymaster smart
contract that will pay the gas fees of the transaction.Must also provide a
paymasterInput field.Returns
Returns aPromise<Hex> containing the transaction hash of the submitted transaction.