IntegrationEnglish
Network
Chain id, RPC, explorer, quote asset
UNPRICED runs on Robinhood Chain, an Arbitrum Orbit L2 settling to Ethereum.
| Name | Robinhood Chain |
| Chain id | 4663 |
| RPC | https://rpc.mainnet.chain.robinhood.com |
| Explorer | https://robinhoodchain.blockscout.com (Blockscout) |
| Native gas token | ETH |
| Block time | 100 ms |
| Multicall3 | 0xca11bde05977b3631167028862be2a173976ca11 |
| Quote asset | USDC, 6 decimals |
Connecting
viem ships the chain definition:
import { robinhood } from "viem/chains";
import { createPublicClient, http } from "viem";
const client = createPublicClient({
chain: robinhood,
transport: http(),
});Derive explorer links from the chain definition (chain.blockExplorers.default.url). A hard-coded explorer URL survives a chain change and sends people to verify their transaction on the wrong network, the opposite of the public proof this product is built on.
Units
Dollars carry 6 decimals. 1_000_000 = 1.00 USD, in every amount in this documentation and every contract call.
Claims carry 6 decimals (CLAIM_SCALE = 1_000_000). Supplies, balances and claim arguments are expressed in micro-claims: 1_000_000 = one claim.
Both units having six decimals is convenient. A claim is not a dollar.
Multicall
The chain ships Multicall3 at the canonical address, and viem picks it up from the chain definition. Batch totalSupply and reserveBalance into one call. Those two reads are the whole of a market's live state. See Reading market state.