AarmaChain - Documentation
  • Introduction
  • Why AarmaChain
  • Features & Functionalities
  • Consensus
  • Ecosystem
    • AarmaDEX
    • Aarma Exchange
    • Aarma Wallet
    • Aarma Bridge
    • Aarma Pay
  • AARMA Coin
  • Governance
  • AarmaChain Community Token (ACT)
  • ℹ️guide
    • Add AarmaChain To Metamask
    • Environment Set-up
    • Deploy a Smart Contract
    • Run a Node
    • AarmaChain CDK
  • ⏺️Network Reference
    • RPC Configuration
    • Addresses
    • APIs
      • accounts
      • blockNumber
      • call
      • chainId
      • estimateGas
      • gasPrice
      • getBalance
      • getBlockByHash
      • getBlockByNumber
      • getBlockTransactionCountByHash
      • getBlockTransactionCountByNumber
      • getCode
      • getLogs
      • getStorageAt
      • getTransactionByBlockHashAndIndex
      • getTransactionByBlockNumberAndIndex
      • getTransactionByHash
      • getTransactionCount
      • getTransactionReceipt
      • getUncleByBlockHashAndIndex
      • getUncleByBlockNumberAndIndex
      • getUncleCountByBlockHash
      • getUncleCountByBlockNumber
      • getWork
      • hashrate
      • mining
      • protocolVesrion
      • sendRawTransaction
      • submitWork
      • syncing
      • net_listening
      • net_peercount
      • net_version
      • web3_clientVersion
      • parity_nextNonce
      • Filter Methods
        • newFilter
        • newBlockFilter
        • getFilterChanges
        • uninstallFilter
  • 💬Resources
    • Developer Tools
    • FAQs
    • Learning Resources
Powered by GitBook
On this page
  1. guide

Environment Set-up

PreviousAdd AarmaChain To MetamaskNextDeploy a Smart Contract

Last updated 11 months ago

Setting up

Remix IDE is an online IDE to develop smart contracts. If you’re new to Remix, You’ll first need to activate two modules: Solidity Compiler and Deploy & Run Transactions.

  • Search for 'Solidity Compiler' and 'Deploy & Run Transactions' plugins in the plugin tab in Remix.

  • Activate the two plugins

  • Select Solidity Environment

  • Go to File Explorers, and Create a new file, Name it aarmaFirst.sol

  • Copy/Paste the Smart contract below into the newly created file aarmaFirst.sol

Smart contract

Explainpragma solidity ^0.8.10
contract aarmaFirst { 

  string public hello = "Hello Aarma!"
}

The first line, pragma solidity ^0.8.10 specifies that the source code is for a Solidity version greater than 0.8.10. are common instructions for compilers about how to treat the source code (e.g., pragma once).

Compile Smart Contract

  • Go to Solidity Compiler.

  • Select Compiler Version to 0.8.10.

  • Compile aarmaFirst.sol

Now, We have to deploy our smart contract on AarmaChain network. For that, we have to connect to web3 world, this can be done by using Metamask.

  • Select Injected Web3 in the Environment dropdown and your contract.

  • Accept the Connection Request!

  • Once Metamask is connected to Remix, the ‘Deploy’ transaction would generate another Metamask popup that requires transaction confirmation.

Congratulations! You have successfully deployed aarmaFirst Smart Contract. Now you can interact with the Smart Contract.

Check for adding Aarmachain to your Metamask wallet. Now, let's Deploy the Smart Contract on AarmaChain:

ℹ️
THIS TUTORIAL
Remix IDE
Pragmas