Oraichain
  • ORAICHAIN
    • Introduction
    • System Overview
      • AI Layer 1 for Data Economy & blockchain oracle services
      • Layer 2 Rollups and Subnetworks
      • Verifiable and trustless AI Execution
      • Protocol Messages
      • IBC Integration
    • Use Cases
    • Token Economics
  • DEVELOPER GUIDES
    • General
      • Blockchain details
    • CosmWasm Contracts
      • Compile a Contract
      • Deploy a Contract
      • Query a Contract
      • Send tokens to a Contract
      • Manage Contracts using design patterns
      • End-to-end CosmWasm testing with CW-simulate
    • Local testnet chain
    • Wallet
      • OWallet
    • Price Feed
      • CW Oracle Hub
    • VRF 2.0
      • Introduction to Oraichain VRF 2.0
      • Get a Random Value from API
        • Get VRF Value from different networks
        • Contract Addresses and Pricing
        • Validate a Group Signature
      • Security Remarks
      • API Reference
      • Get support from Oraichain team
    • OraiDEX
      • ORAIX Token
      • OBridge
        • OraiBTC
        • TON Bridge
          • TON Blockchain 101
      • Decentralization
    • Indexers
      • SubQuery
    • OraichainEVM
      • Getting started
      • Smart Contracts
        • Oraichain EVM Precompiled Contracts
        • Address
        • Bank
        • Wasm
        • Authz
      • Guides
        • Metamask
        • Remix
        • Foundry
        • Hardhat
        • Tools
        • Oraichain EVM RPC
  • GOVERNANCE
    • Privacy Policy
  • NODES & VALIDATORS
    • Networks
      • Joining Mainnet
        • Build Linux binary from source and become a Sentry Node Operator
        • Become a Validator
      • Joining Testnet
        • Become Testnet Fullnode From Source
        • StateSync Testnet
        • Faucet Testnet
    • Oraichain Tutorials
      • Migrate one Oraichain node to another
      • Cosmovisor
      • Update validator image
      • Tenderduty
      • Grafana
      • Tracking Unvoted Proposals
      • Tmtop
Powered by GitBook
On this page
  • Step 1: Access the Oraichain repository
  • Step 2: Clone the repository
  • Step 3: Set up
  • Step 4: Start the local network
  • Logs
  • Directories
  • Ports
  • Examples

Was this helpful?

Edit on GitHub
  1. DEVELOPER GUIDES

Local testnet chain

PreviousEnd-to-end CosmWasm testing with CW-simulateNextWallet

Last updated 3 months ago

Was this helpful?

This guide will provide step-by-step how to run a local testnet chain

Step 1: Access the Oraichain repository

The first thing you need to do is head over to the Oraichain repository. This repository is designed to help you launch and interact with local testnet chain. You can find this repo

Step 2: Clone the repository

After find Oraichain repo, clone it to your desire folder

git clone https://github.com/oraichain/wasmd.git && cd wasmd

Step 3: Set up

  • Build the binary

make build
  • Check result

oraid version

Step 4: Start the local network

./scripts/multinode-local-testnet.sh

This command essentially creates a local network of three validators running in the background.

Logs

Validator1: screen -r validator1

Validator2: screen -r validator2

Validator3: screen -r validator3

CTRL + A + D to detach

Directories

Validator1: .oraid/validator1

Validator2: .oraid/validator2

Validator3: .oraid/validator3

Ports

"x, x, x, x, rpc, p2p, x"

Validator1: 1317, 9090, 9091, 26658, 26657, 26656, 6060

Validator2: 1316, 9088, 9089, 26655, 26654, 26653, 6061

Validator3: 1315, 9086, 9087, 26652, 26651, 26650, 6062

Ensure to include the --home flag or --node flag when using a particular node.

Examples

Validator2: oraid status --node "tcp://localhost:26654"

Validator3: oraid status --node "tcp://localhost:26651"

or

Validator1: oraid keys list --keyring-backend test --home $HOME/.oraid/validator1

Validator2: oraid keys list --keyring-backend test --home $HOME/.oraid/validator2

here