4663 for mainnet, 46630 for testnet.
MetaMask
On node access details, click Connect wallet to inject your Chainstack endpoint automatically. If you need to add the network manually, use:- Network name:
Robinhood Chain Mainnet - RPC URL: your Chainstack HTTPS endpoint
- Chain ID:
4663 - Currency symbol:
ETH - Block explorer URL:
https://robinscan.io/
- Network name:
Robinhood Chain Testnet - RPC URL: your Chainstack HTTPS endpoint
- Chain ID:
46630 - Currency symbol:
ETH - Block explorer URL:
https://explorer.testnet.chain.robinhood.com
ethers.js
Build dapps using ethers.js v6 and Robinhood Chain nodes deployed with Chainstack.- Install ethers.js.
- Connect over HTTP or WebSocket to get the latest block number.
- YOUR_CHAINSTACK_ENDPOINT — your node HTTPS endpoint. See node access details.
- YOUR_CHAINSTACK_WSS_ENDPOINT — your node WSS endpoint
viem
Build dapps using viem and Robinhood Chain nodes deployed with Chainstack.- Install viem.
- Create a public client over HTTP and get the latest block number.
web3.py
Build dapps using web3.py and Robinhood Chain nodes deployed with Chainstack.- Install web3.py.
- Connect over HTTP to get the latest block number.
- YOUR_CHAINSTACK_ENDPOINT — your node HTTPS endpoint protected either with the key or password
- USERNAME — the username to your node if you use a password-protected endpoint
- PASSWORD — the password to your node if you use a password-protected endpoint
- HOSTNAME — the host name of your node
Hardhat
Configure Hardhat to deploy contracts and interact through your Robinhood Chain nodes.- Install Hardhat and create a project.
-
Add the network to
hardhat.config.js:where- YOUR_CHAINSTACK_ENDPOINT — your node HTTPS endpoint. See node access details.
- YOUR_PRIVATE_KEY — the private key of the account you use to deploy the contract
-
Run
npx hardhat run scripts/deploy.js --network robinhoodand Hardhat will deploy through Chainstack.
chainId: 46630.
Foundry
- Install Foundry.
- Use
--rpc-urlto run the operation through your Chainstack node.
Forge
Useforge to develop, test, and deploy your smart contracts.
To deploy a contract:
- CONTRACT_NAME — name of the contract in the Solidity source code
- CONTRACT_PATH — path to your smart contract
- YOUR_PRIVATE_KEY — the private key to your funded account that you use to deploy the contract
- YOUR_CHAINSTACK_ENDPOINT — your node HTTPS endpoint protected either with the key or password
Cast
Usecast to interact with the network and the deployed contracts.
To get the latest block number:
Remix IDE
To make Remix IDE interact with Robinhood Chain through a Chainstack node:- Get MetaMask and set it to interact through a Chainstack node. See MetaMask.
- In Remix IDE, navigate to the Deploy & run transactions tab. Select Injected Provider - MetaMask in Environment.