signTransaction method that can be used to sign a transaction using the connected Abstract Global Wallet.
Transactions are signed by the approved signer account (EOA) of the Abstract Global Wallet.
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<string> containing the signed serialized transaction.