Skip to main content

Create a wallet-backed client

Call this from a connect action using your injected EIP-1193 provider:
Switch the wallet to the required chain before writing. Recreate the client on account/network changes; React handles this automatically.

Read without a wallet

Indexer reads accept an explicit address. Balance methods use the connected owner; use viem balanceOf(owner) for another public address.