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
  • Connect Oraichain Account to Remix
  • Deploy and Interact with the Contract

Was this helpful?

Edit on GitHub
  1. DEVELOPER GUIDES
  2. OraichainEVM
  3. Guides

Remix

Set up a Remix Ethermint testnet development environment.

PreviousMetamaskNextFoundry

Last updated 1 month ago

Was this helpful?

is an in-browser IDE for smart contracts. In this guide, we will learn how to deploy a contract to a running Ethermint network through Remix and interact with it.

Connect Oraichain Account to Remix

First, follow the steps in the Metamask guide to import your Oraichain private key into Metamask. Start the Oraichain daemon and rest server.Once that is complete, go to . There are some contracts in the File Explorer. Select any of these contracts. In this example, we use Counter.sol from the Foundry guide. On the left-most bar, select the Solidity Compiler and compile the contract.CommentNext, select the Deploy and Run option. Select injected provider - Metamask as the environment. This will open a metamask popup for you to confirm connecting your Metamask to Remix. Hit confirm.CommentYou should see your account show up in the left-hand panel.Comment

Deploy and Interact with the Contract

Now that your account is connected, you can deploy the contract. Press the Deploy button. A metamask pop-up will appear, asking you to confirm. Confirm the transaction. You should see a log for the deployment transaction in the oraichain logslogs.

  1. Interact with Contract:

    • The deployed contract will be visible under Deployed Contracts in Remix.

      • Use the Remix interface to interact. For Counter.sol, click deploy. Confirm the transaction in Metamask.

      • Retrieve the counter value by clicking getCounter; it should return 1.

Remix
Solidity
Remix