Network
Robinhood Chain
Chain ids, RPC endpoints, block explorers, and the wallet stack Lendr connects with.
Lendr runs entirely on Robinhood Chain — there's no multi-chain support, no bridging, and no cross-chain messaging anywhere in the app. Which network you're pointed at is a single build-time switch.
| Mainnet | Testnet | |
|---|---|---|
| Chain id | 4663 | 46630 |
| Default RPC | https://rpc.mainnet.chain.robinhood.com | https://rpc.testnet.chain.robinhood.com |
| Block explorer | robinhoodchain.blockscout.com | explorer.testnet.chain.robinhood.com |
Switching networks
NEXT_PUBLIC_NETWORK=testnet # selects the testnet chain config
NEXT_PUBLIC_ROBINHOOD_RPC_URL=... # overrides the default RPC for whichever network is activeNEXT_PUBLIC_NETWORK=testnet is the only thing that switches the active chain; any other value (or leaving it unset) keeps the app on mainnet. The RPC override applies to whichever network ends up selected — it's not network-specific itself.
Wallet connectivity
The app connects wallets with wagmi and viem, with Coinbase Wallet's SDK wired in as a connector. Every write call — createListing, fillListing, repay, claimCollateral, and the ERC-20 approve calls that precede them — is sent through wagmi's writeContract, and the app checks the connected wallet's chainId against Robinhood Chain's before allowing the transaction, prompting a network switch if they don't match.
