Skip to main content

Supply the network and your read client

Supply a viem publicClient for the selected chain. Deployments and USDC are preconfigured; indexing defaults off. React uses your walletClient prop or the surrounding wagmi connection. Use the matching HTTPS indexer URL, including /api. Only price responses carry a chain ID; history and assets rely on your URL selecting the correct chain.

All client options

CTokenClientOptions applies in both Node and browsers. Configure your paid read endpoint in publicClient; keep server credentials behind an application proxy. The wallet signs and submits transactions and may use its transport for transaction preparation. Pass an application-owned wallet client. Raw privateKey and standalone account options reject with INVALID_CONFIG.

Optional React overrides

Override only what you need. tokens={[]} disables built-in tokens. Changed contract addresses appear in the widget’s Custom contracts panel with explorer links; RPC/indexer URLs stay out of that panel.