Private beta · test money onlyRequest an invite

IntegrationEnglish

Network

Chain id, RPC, explorer, quote asset

UNPRICED runs on Robinhood Chain, an Arbitrum Orbit L2 settling to Ethereum.

NameRobinhood Chain
Chain id4663
RPChttps://rpc.mainnet.chain.robinhood.com
Explorerhttps://robinhoodchain.blockscout.com (Blockscout)
Native gas tokenETH
Block time100 ms
Multicall30xca11bde05977b3631167028862be2a173976ca11
Quote assetUSDC, 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.