Skip to content

Deploy Smart Contracts on Robinhood Chain

This guide walks through how to deploy a smart contract to Robinhood Chain, a Layer 2. If you’ve deployed to Ethereum or other Arbitrum chains before, the flow should feel very familiar.

Prerequisites

Before you begin, make sure you have:

  • Node.js (v18+ recommended)
  • A wallet with testnet ETH on Robinhood Chain
  • A smart contract project using Hardhat, Foundry, or another Ethereum-compatible framework

Network Configuration

Add Robinhood Chain to your development environment using the following parameters:

  • Network Name: Robinhood Chain Testnet
  • RPC URL: https://rpc.testnet.chain.robinhood.com
  • Chain ID: 46630
  • Currency Symbol: ETH
  • Block Explorer: https://explorer.testnet.chain.robinhood.com

Set Up Your Project

If you already have a project, you can skip this step. Otherwise, initialize a new one.

Hardhat example:

mkdir rh-deploy
cd rh-deploy
npm init -y
npm install --save-dev hardhat
npx hardhat init

Configure the Network

Add Robinhood Chain to your config.

Hardhat (hardhat.config.ts):

networks: {
  robinhood: {
    url: "rpc.testnet.chain.robinhood.com",
    accounts: [process.env.PRIVATE_KEY],
    chainId: 46630,
  },
}

Make sure your private key is stored securely (for example, via environment variables).

Deploy a Contract

Create a simple contract if you don’t already have one.

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
 
contract HelloRobinhood {
    function hello() external pure returns (string memory) {
        return "Hello, Robinhood Chain!";
    }
}

Deploy it using your framework of choice.

Hardhat example:

npx hardhat run scripts/deploy.ts --network robinhood

Once deployed, you'll see a contract address in the output.

Verify the Contract

To verify your contract, use the Robinhood Chain block explorer. Verification steps are identical to other Arbitrum chains and depend on your tooling (Hardhat, Foundry, etc.).

Interacting With Your Contract

After deployment, you can:

  • Call contract methods using scripts or a frontend
  • Integrate with wallets that support Arbitrum-based chains
  • Monitor transactions via the block explorer