Prerequisites
Prerequisites
1. Installation
Install theviem
package.
2. Client Configuration
Configure your Viem client usingabstractTestnet
as the chain and extend it with
eip712WalletActions.
Reading Blockchain Data
Use a public client to fetch data from the blockchain via an RPC.Sending Transactions
Use a wallet client to send transactions to the blockchain.Paymasters
Viem has native support for Abstract paymasters. Provide thepaymaster
and paymasterInput
fields when sending a transaction.
View Viem documentation.
Smart Contract Wallets
Viem also has native support for using smart contract wallets. This means you can submit transactionsfrom
a smart contract wallet by providing
a smart wallet account as the account
field to the client.
View Viem documentation.