X-ChainToken
Last updated
Last updated
X-Chain is fully compatible with ERC20 standard,interfaces and events.
Contract
X-Chain uses EVM for contract execution.
Remix IDE is an open source web and desktop application. It fosters a fast development cycle and has a rich set of plugins with intuitive GUIs. Remix is used for the entire journey of contract development as well as being a playground for learning and teaching contract development.
Create new file in file explorer. Edit contract info at right side.
Compile contract
Click compiler button, switch UI
Select contract you want to compile
Set compile flags
Clieck compile button
Deploy contract to blockchain via wallet such as MetaMask
.
Set network info in Metamask
.
Back to Remix.
Swich environment
Select contract
click deploy button
The contract can be deployed on the chain through MetaMask
Use truffle to compile and deploy contract.
Install truffle
Run truffle version
after installation finished. If the command line displays a message like below, installation is successful.
Create project First,create folder for project.
Then, init project via truffle
After initialization is complete, the following file structure is generated within the project.
Config truffle info
Create contract Put custom contracts into folder contracts
and modify deployment script in folder migrations
.
Deploy contract
Run the deployment command.
The output as below.
Finally, the contract deployment is complete.
Install Node.js See for detail.