Deploy on Vexon
Here is a structured guide for deploying a smart contract on the Vexon Smartchain Testnet using the provided sample contract.
Guide: Deploying a Smart Contract on Vexon Testnet
Step 1: Prepare Environment
Install MetaMask: Make sure you have MetaMask installed as a browser extension. It's needed to connect to the Vexon Testnet.
Connect to Vexon Testnet:
Go to MetaMask, click on your profile icon and choose "Settings."
Navigate to "Networks" and add a new network with the following details:
Network Name: Vexon Testnet
RPC URL: https://rpc-testnet.vexonhub.org
Chain ID: 7879
Currency Symbol: tVEX
Explorer: https://testnet.vexonhub.org/
Obtain Testnet tVEX:
Claim some test tVEX from the Vexon Faucet to fund transactions on the Vexon Testnet.
Step 2: Write Your Smart Contract
Use the following sample contract code as a base to deploy on Vexon Smartchain. You can modify the contract details according to your needs (token name, supply, decimals, etc.).
Step 3: Deploy Your Contract
Use Remix IDE:
Open Remix and paste the above contract code.
Choose the Solidity Compiler from the sidebar and ensure it’s set to 0.4.4.
Compile your smart contract.
Deploy to Vexon Testnet:
In Remix, go to the "Deploy & Run Transactions" tab.
Under "Environment," select "Injected Web3" (MetaMask).
Ensure MetaMask is connected to the Vexon Testnet.
Deploy the contract by clicking the "Deploy" button. You will be prompted to confirm the transaction in MetaMask.
Step 4: Verify Contract
Once deployed, copy the contract address.
Visit the Vexon Explorer (once available) to verify the contract and ensure it's successfully deployed.
Step 5: Interact with the Contract
In Remix, after deployment, you'll see the contract functions.
You can test:
Transferring tokens
Checking balances
Approving and transferring from other addresses
This guide will help you deploy and test your smart contract on the Vexon Testnet using the sample code provided.
Last updated