primer · onchain

Five onchain primitives, demystified.

Every idea in this repo leans on one of five web3 primitives. Each runs against Robinhood Chain Testnet (an Arbitrum L2, chainId 46630, native ETH gas, free on testnet). Contracts verify on Blockscout — no Etherscan API key required. What makes Robinhood Chain unique: tokenized real-world stocks live onchain as first-class ERC-20s, unlocking a whole primitive of its own.

The four secrets

Add these in your Lovable project (Settings → Secrets) before pasting any mega-prompt:

  • METAMASK_PRIVATE_KEYExported from MetaMask. Fund it with testnet ETH from the Robinhood Chain faucet.open ↗
  • ROBINHOOD_TESTNET_RPC_URLAlchemy HTTPS endpoint for Robinhood Chain Testnet. Public RPC works as a fallback.open ↗
  • PRIVY_APP_IDGoogle sign-in + sponsored transactions. Add Robinhood Chain Testnet as a custom EVM chain in the Privy dashboard.open ↗
  • PINATA_JWTPin to IPFS.open ↗
network

Robinhood Chain Testnet

chain id
46630
native gas
ETH (free on testnet)
public rpc
https://rpc.testnet.chain.robinhood.com
superpower · tokenized stocks

Real-world stocks, onchain.

Robinhood Chain hosts canonical ERC-20 wrappers for major US equities. The stock-token primitive reads a user's balance to gate or personalize creative features.

WETH
Wrapped Ether
USDG
Global Dollar
AAPL
Apple Inc.
AMD
Advanced Micro Devices
TSLA
Tesla Inc.
NVDA
NVIDIA Corp.
GOOGL
Alphabet Inc.
MSFT
Microsoft Corp.
real-world asset

Tokenized stock signal

200 ideas use this
kernel
an ERC-20 read against a Robinhood Chain tokenized stock (AAPL / AMD / TSLA / NVDA / GOOGL / MSFT / WETH / USDG) via viem's balanceOf, gating a creative feature on real onchain holdings
how it drives the UI
a 'stock-gated' badge that unlocks or personalizes the creative surface based on the user's tokenized-stock balance