writeContract method that can be used to call functions on a smart contract using the connected Abstract Global Wallet.
Usage
Parameters
The account to use for the transaction. By default, this is set to the
Abstract Global Wallet’s account.
The chain to use for the transaction. By default, this is set to the chain
specified in the AbstractClient.
Data to append to the end of the calldata. Useful for adding a “domain”
tag.
Address of the
paymaster smart
contract that will pay the gas fees of the transaction.
Returns
Returns aPromise<Hex> containing the transaction hash of the contract write operation.