🟣How to Deploy in Evnode
Last updated
Last updated
Follow these steps to create and deploy a smart contract on the Evnode Testnet Blockchain:
Step 1: Open Remix IDE
Visit https://remix.ethereum.org/. Remix is a web-based Integrated Development Environment (IDE) for Ethereum and EVM-compatible blockchains like Evnode.
Step 2: Create a New Smart Contract File
In the Remix IDE, click on the "Create New File" button (usually found in the file explorer on the left-hand menu).
Give your contract file a name. For example: MyFirstContract.sol
.
Ensure that the file name ends with .sol
.
Step 3: Import the Solidity Template
Copy the Solidity contract template provided in the Evnode Documentation: https://docs.evnode.org/create-smart-contract/solidity-template-contract.
Paste the template code into your newly created file in the Remix editor.
Step 4: Customize the Contract
Edit the contract code to suit your requirements (e.g., modify function logic, variables, or visibility).
After making changes, save the contract by pressing CTRL+S or by clicking the save button in Remix.
Step 5: Set the Correct Solidity Version
At the top of the contract file, you’ll see a line starting with pragma solidity
.
Update the Solidity version in your code to match the compiler version being used in Remix.
For example: If your pragma solidity
specifies ^0.8.0
, select 0.8.x
in the Solidity Compiler panel.
Step 6: Compile the Contract
Navigate to the Solidity Compiler tab in Remix.
Select your contract file and click on the Compile button.
Ensure there are no errors during compilation.
Step 7: Prepare for Deployment
Navigate to the Deploy & Run Transactions tab in Remix.
Make sure you have enough native Evnode tokens for the deployment:
Use tEVO for Testnet (faucet available at: https://faucet.evnode.org).
Use EVO for Mainnet.
Step 8: Connect Your Wallet
In the Environment dropdown, select "Injected Provider" to connect your wallet (e.g., MetaMask).
Make sure your wallet is connected to the Evnode Testnet RPC:
HOW TO CONNECT WITH EVNODE MAINNET ( SOON )
Step 9: Deploy Your Contract
Under the "CONTRACT" dropdown, select your contract name (e.g., MyFirstContract - MyFirstContract.sol
).
Click the Deploy button.
Confirm the transaction in your wallet to deploy the contract to the Evnode Testnet.
Step 10: Verify Deployment
Once the deployment is successful, you’ll see the contract address in the Remix terminal output.
Visit the Evnode Testnet Explorer at https://testnet.evscan.net to verify your contract's deployment.
Use the contract address to interact with your deployed contract.
Evnode Documentation: https://docs.evnode.org/
Evnode Faucet: https://faucet.evnode.org/
By following these steps, you can successfully create, customize, and deploy your smart contracts on the Evnode Testnet Blockchain.