Skip to content

Update README.rst - #787

Open
JohannKerbrat wants to merge 1 commit into
robinhood:masterfrom
JohannKerbrat:JohannKerbrat-patch-1
Open

Update README.rst#787
JohannKerbrat wants to merge 1 commit into
robinhood:masterfrom
JohannKerbrat:JohannKerbrat-patch-1

Conversation

@JohannKerbrat

Copy link
Copy Markdown

Robinhood Chain

Robinhood Chain is a permissionless, Ethereum-compatible Arbitrum Layer-2.
It uses Ethereum blobs for data availability and ETH as the native gas token.
Robinhood Wallet supports it natively with no manual setup — any other
EVM-compatible wallet can add the network with the parameters below.

Network parameters

Field Value
Network name Robinhood Chain
Chain ID 4663 (0x1237)
RPC URL https://rpc.mainnet.chain.robinhood.com
Currency symbol ETH
Block explorer https://robinhoodchain.blockscout.com
Stack Arbitrum L2 (EVM-compatible)

Add to MetaMask

// Pops up the wallet and asks it to add Robinhood Chain.
// Fine to wire this to a "Connect" button in your dApp.
async function addRobinhoodChain() {
  if (!window.ethereum) throw new Error("No EVM wallet detected");
  await window.ethereum.request({
    method: "wallet_addEthereumChain",
    params: [
      {
        chainId: "0x1237", // same as 4663, just in hex like the wallet wants
        chainName: "Robinhood Chain",
        nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
        rpcUrls: ["https://rpc.mainnet.chain.robinhood.com"],
        blockExplorerUrls: ["https://robinhoodchain.blockscout.com"],
      },
    ],
  });
}

Verify the connection (ethers.js)

import { ethers } from "ethers";

const provider = new ethers.JsonRpcProvider(
  "https://rpc.mainnet.chain.robinhood.com"
);

// Quick check that we're actually reaching the chain
const network = await provider.getNetwork();
console.log("Chain ID:", network.chainId); // should print 4663n

const block = await provider.getBlockNumber();
console.log("Latest block:", block);

Test the network with the test address

import { ethers } from "ethers";

const RPC_URL = "https://rpc.mainnet.chain.robinhood.com";
const robin_team_test_wallet = "0x4d9302846c057507d32405ba77055473d33beb26"; // vlad wallet test

// Read-only smoke test: just reads public data to confirm the RPC is alive
// and answering sensibly. Nothing is signed and no funds ever move.
async function testRobinhoodChain() {
  const provider = new ethers.JsonRpcProvider(RPC_URL);

  // Make sure we landed on Robinhood Chain and not some other RPC by mistake
  const network = await provider.getNetwork();
  if (network.chainId !== 4663n) {
    throw new Error(`Unexpected chain ID: ${network.chainId} (expected 4663)`);
  }

  // Pull a few public numbers for the test address, all in one go
  const [balance, txCount, latestBlock] = await Promise.all([
    provider.getBalance(robin_team_test_wallet),
    provider.getTransactionCount(robin_team_test_wallet),
    provider.getBlockNumber(),
  ]);

  return {
    chainId: network.chainId.toString(),
    address: robin_team_test_wallet,
    balanceEth: ethers.formatEther(balance),
    txCount,
    latestBlock,
  };
}

testRobinhoodChain()
  .then((r) => console.log("✅ Network reachable:", r))
  .catch((e) => console.error("❌ Network test failed:", e.message));

Add Robinhood Chain network documentation and integration snippets
Adds documentation for Robinhood Chain, a permissionless Ethereum-compatible Arbitrum L2 that uses Ethereum blobs for data availability and ETH as the native gas token.
What's included

Network parameters table (chain ID 4663 / 0x1237, RPC URL, currency symbol, block explorer, stack)
addRobinhoodChain() — helper that calls wallet_addEthereumChain to add the network to MetaMask / any EVM wallet; can be wired to a "Connect" button
Connection verification snippet using ethers.js (getNetwork + getBlockNumber)
Read-only smoke test (testRobinhoodChain()) that checks the chain ID and reads public data for a test address — nothing is signed, no funds move
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant