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
Address | null | undefined
The recipient address of the transaction.
Address
The sender address of the transaction.By default, this is set as the Abstract Global Wallet smart contract address.
Hex | undefined
Contract code or a hashed method call with encoded args.
bigint | undefined
Gas provided for transaction execution.
number | undefined
Unique number identifying this transaction.Learn more in the handling nonces section.
bigint | undefined
Value in wei sent with this transaction.
bigint
Total fee per gas in wei (
gasPrice/baseFeePerGas + maxPriorityFeePerGas).bigint
Max priority fee per gas (in wei).
bigint | undefined
The amount of gas to pay per byte of data on Ethereum.
Hex[] | undefined
An array of bytecodes of contracts that are dependencies for the transaction.
Account | Address
Address of the
paymaster smart
contract that will pay the gas fees of the transaction.Must also provide a
paymasterInput field.Hex
Input data to the paymaster.Must also provide a
paymaster field.Hex | undefined
Custom signature for the transaction.
'eip712' | undefined
Transaction type. For EIP-712 transactions, this should be
eip712.Returns
Returns aPromise<string> containing the signed serialized transaction.