Skip to content
StockSync
Docs · Chain configuration

Reference

Chain configuration

Robinhood Chain is an Arbitrum Layer-2 that settles to Ethereum and uses ETH for gas. StockSync supports its mainnet and testnet.

Networks

MainnetTestnet
Keymainnettestnet
Chain ID466346630
Public RPChttps://rpc.mainnet.chain.robinhood.comhttps://rpc.testnet.chain.robinhood.com
Explorerhttps://robinhoodchain.blockscout.comhttps://explorer.testnet.chain.robinhood.com
Multicall30xcA11bde05977b3631167028862bE2a173976CA11Not verified
Chainlink feedsListed in Chainlink’s feed directoryNot available

On mainnet, every onchain value for a request is read at one block through the verified Multicall3 contract. Without a verified Multicall3, StockSync makes parallel calls pinned to the same block number. Oracle reads on testnet fail with UNSUPPORTED_CHAIN.

Environment variables

VariableDefaultPurpose
STOCKSYNC_CHAINmainnetChain used when a request does not name one
STOCKSYNC_RPC_URL_MAINNETPublic mainnet RPCMainnet RPC endpoint
STOCKSYNC_RPC_URL_TESTNETPublic testnet RPCTestnet RPC endpoint
STOCKSYNC_API_BASE_URLhttps://api.robinhood.com/rhjRobinhood Stock Token API base URL
STOCKSYNC_CHAINLINK_FEEDS_URLhttps://reference-data-directory.vercel.app/feeds-robinhood-mainnet.jsonChainlink feed directory for mainnet
STOCKSYNC_HTTP_TIMEOUT_MS10000Timeout per upstream request, 500 to 60000 ms

Every URL must use https://; plain http:// is accepted only for localhost. An invalid value fails with CONFIG_INVALID, and the error names the variable without repeating its value.

RPC endpoints

The public endpoints are rate-limited and not intended for production workloads. From shared cloud egress addresses, such as Cloudflare Workers, most requests are refused with HTTP 429, and StockSync reports UPSTREAM_RATE_LIMITED. Use a dedicated provider for anything beyond local experiments.

The Robinhood Chain docs recommend Alchemy, which has a free plan: create an app on Robinhood Chain and use its HTTPS endpoint. QuickNode, Blockdaemon, dRPC, and Validation Cloud also support the chain.

bash
export STOCKSYNC_RPC_URL_MAINNET="https://robinhood-mainnet.g.alchemy.com/v2/<API_KEY>"

On Cloudflare Workers, store the endpoint as a secret with wrangler secret put STOCKSYNC_RPC_URL_MAINNET rather than in wrangler.jsonc.

StockSync never returns or logs a configured RPC URL. getChainInfo() reports only whether a configured or public endpoint is in use.

Choosing a chain per request

  • CLI: --chain mainnet, --chain testnet, or a chain ID.
  • MCP server: tools that read the chain accept "chain": "mainnet" or "testnet".
  • SDK: pass { chain: 'testnet' } (or a chain ID) in request options, or chainId when verifying.