Create a wallet client for signing and sending transactions
Network identifier (CAIP-2 format)
Account for signing
Optional
Optional custom RPC URL
Configured wallet client
import { privateKeyToAccount } from 'viem/accounts';const account = privateKeyToAccount('0x...');const walletClient = createWalletProvider('eip155:8453', account); Copy
import { privateKeyToAccount } from 'viem/accounts';const account = privateKeyToAccount('0x...');const walletClient = createWalletProvider('eip155:8453', account);
Create a wallet client for signing and sending transactions