sendTransaction
Function to send a transaction using the connected Abstract Global Wallet.
The AbstractClient
includes a 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 recipient address of the transaction.
The sender address of the transaction.
By default, this is set as the Abstract Global Wallet smart contract address.
Contract code or a hashed method call with encoded args.
Gas provided for transaction execution.
Unique number identifying this transaction.
Learn more in the handling nonces section.
Value in wei sent with this transaction.
Total fee per gas in wei (gasPrice/baseFeePerGas + maxPriorityFeePerGas
).
Max priority fee per gas (in wei).
The amount of gas for publishing one byte of data on Ethereum.
An array of bytecodes of contracts that are dependencies for the transaction.
Address of the paymaster smart contract that will pay the gas fees of the transaction.
Must also provide a paymasterInput
field.
Input data to the paymaster.
Must also provide a paymaster
field.
Custom signature for the transaction.
Transaction type. For EIP-712 transactions, this should be eip712
.
Returns
Returns a Promise<Hex>
containing the transaction hash of the submitted transaction.
Was this page helpful?