toViemAccount
method and the useWallets
hook from the React SDK.ConnectedWallet
object for your user’s wallet to the method, which will return a LocalAccount
instance.account
to sign messages, typed data payloads, and transactions.viem/chains
package and import the createWalletClient
method and custom
transport from viem
:wallets
array and switch its network to the chain you imported, using the wallet’s switchChain
method:getEthereumProvider
method and pass it to viem’s createWalletClient
method like so:wagmi
. Please see our wagmi guide for setting up the integration.wallets
array and switch it to your desired network, using the wallet’s switchChain
method:getEthereumProvider
method and pass it to Web3js’s Web3
constructor like so: