Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

createWalletClient

function createWalletClient(config: {
  account?: LocalAccount
  chain: { id: string; name: string; rpcUrls: string[] }
  transport: ReturnType<typeof http> | ReturnType<typeof custom>
})

Builds a wallet client for tx build/sign/send.

The client handles the full wallet transaction lifecycle with clear boundaries between preparation, authorization, and broadcast, while keeping the public API focused on actions like callContract, writeContract, and sendTransaction.