> For the complete documentation index, see [llms.txt](https://docs.zofinance.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zofinance.io/building-on-zo/trading-widget/rpc-and-wallet.md).

# RPC and Wallet

* **RPC** – The widget reads RPC from `localStorage`: `is-custom-rpc`, `custom-rpc-url`, `custom-rpc-index`. Use **`RpcSettings`** in your header (or elsewhere) so users can pick a predefined RPC or set a custom URL. After changing RPC, a full page refresh is recommended.
* **Wallet** – Uses **Sui dapp-kit**. Your app must create a `dAppKit` (e.g. with `createDAppKit`) and wrap the tree in `DAppKitProvider`. **`CustomConnectButton`** triggers the kit’s connect flow; when connected, it opens the widget’s account sidebar.
