Redbelly
Cycle 1 Developer Kit
Zero to your first deployed contract
← Back to Start Here
Building

Zero to Hero: deploy your first contract on Redbelly

A straight path from an empty folder to a verified contract on Redbelly Testnet. No prior Redbelly experience assumed, ordinary Solidity and EVM tooling knowledge is enough.

153
Testnet chain ID
~15 min
To first deploy
$0
Cost, faucet covers gas
Write access to Redbelly, Testnet included, requires an access credential (KYC). If you have not done this yet, do it first at the KYC section on the onboarding hub, it blocks every step below until it is done.

Set up your environment

Install Node.js (LTS) and a wallet extension (MetaMask or similar). Then scaffold a Hardhat project:

# in an empty folder npm init -y npm install --save-dev hardhat npx hardhat init # choose: Create a TypeScript project (or JavaScript, either works)

Add Redbelly Testnet to your wallet and to Hardhat

Use the exact values from the network setup section, do not reuse Mainnet's. In your wallet: chain ID 153, RPC https://governors.testnet.redbelly.network. In Hardhat, add a network entry:

// hardhat.config.js module.exports = { solidity: "0.8.24", networks: { redbellyTestnet: { url: "https://governors.testnet.redbelly.network", chainId: 153, accounts: [process.env.PRIVATE_KEY] } } };

Keep your private key in a .env file, never hardcoded, and never commit it.

Get testnet RBNT

Gas on Testnet is paid in test RBNT, which has no real value. Claim it from the faucet before you deploy anything, see the faucet section on the hub for the link and current chain details.

Write a minimal contract

A simple storage contract is enough to prove the full path end to end:

// contracts/Storage.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.24; contract Storage { uint256 public value; function set(uint256 _value) public { value = _value; } }

Compile it: npx hardhat compile

Deploy to Testnet

// scripts/deploy.js async function main() { const Storage = await ethers.getContractFactory("Storage"); const storage = await Storage.deploy(); await storage.waitForDeployment(); console.log("Deployed to:", await storage.getAddress()); } main();
npx hardhat run scripts/deploy.js --network redbellyTestnet

Verify it landed

Copy the deployed address from your terminal and paste it into the Testnet explorer, redbelly.testnet.routescan.io. You should see your deploy transaction and the contract's bytecode.

Move to Mainnet when ready

Same steps, swap the network block for chain ID 151 and https://governors.mainnet.redbelly.network, and fund your deployer account with real RBNT instead of faucet RBNT. Real funds, real gas, no faucet safety net, so test thoroughly on Testnet first.