009 /Lab
CodeCard
White code card with window dots and a RUN button.
RUN here really calls the public testnet RPC (read-only, no wallet) and prints the chain ID and latest block. On the home page the card will show the actual contract call.

testnet · read only
// Read-only call to Robinhood Chain testnet
const res = await fetch(RPC_URL, {
method: "POST",
body: JSON.stringify({
jsonrpc: "2.0", id: 1,
method: "eth_blockNumber", params: [],
}),
});Props
| Prop | Type | Default | Description |
|---|---|---|---|
| code | string | – | Source shown in the card. |
| title | string | – | Accessible name (figcaption). |
| label | string | – | Top-right tag. |
| onRun | () => Promise<string> | – | Must be a real action. Omit and there is no RUN button. |
| runLabel | string | Run | Button label. |