π’Ai build smart contract
Guide: AI Build Smart Contract in the XORAI Ecosystem
1. Access the Platform
Visit AI Build Smart Contract to start creating smart contracts automatically with AI assistance.

2. Connect Your Wallet
Use Metamask or any compatible Web3 wallet.
Ensure you are connected to XORAI Testnet (Zathura) if you want to test your contract before deploying it to the mainnet.

3. Get tXRI for Deployment
Before deploying a smart contract, make sure you have tXRI tokens for gas fees.
You can claim free tXRI tokens via XORAI Telegram Bot.
Follow the botβs instructions to receive testnet tokens.
4. Enter a Solidity Prompt
Type your desired Solidity smart contract prompt in the input field. Here are some examples:
"Create an ERC-20 smart contract using Solidity with the name [Token Name], symbol [Symbol], and a total supply of [Total Supply]."
"Generate a secure and optimized ERC-20 token smart contract following OpenZeppelin standards."
"Write a Solidity smart contract for an ERC-20 token with minting, burning, and transfer functions."
"Develop a Solidity smart contract for an ERC-20 token with a fixed supply of [Total Supply]."
"Create an ERC-20 token smart contract with allowance, approve, and transfer functions using OpenZeppelin."
"Generate a Solidity smart contract for an ERC-20 token with 18 decimals and a total supply of [Total Supply]."
"Write an ERC-20 token contract with basic functionalities: transfer, approve, and burn."
"Create an ERC-20 token with ownership control and the ability to mint new tokens."
"Generate an ERC-20 token contract with anti-whale and transaction limit mechanisms."
"Write a Solidity smart contract for an ERC-20 token with staking and reward distribution features."

5. Generate the Smart Contract Code
Once you input your prompt, the AI will generate the Solidity code for your smart contract.
Review the generated code and make modifications if needed.

6. Deploy the Smart Contract
There are two ways to deploy your smart contract:
A. Automatic Deployment via Wallet
Click the Deploy button.
Fill in the required fields in the deployment form (as shown in the image).
Click Deploy with Wallet and confirm the transaction in Metamask.
B. Manual Deployment via Remix Ethereum
Copy the Solidity code generated by the AI.
Go to Remix Ethereum.
Create a new Solidity file (
.sol).Paste the smart contract code.
Compile the contract using the Solidity compiler.
Deploy it manually by selecting Injected Web3 and ensuring your Metamask is connected to the XORAI Testnet (Zathura).
Confirm the deployment transaction in Metamask.


7. Confirm Deployment
Wait for the transaction to be processed.
Check the blockchain explorer for the transaction hash (TX Hash) to verify deployment.

Your smart contract is now successfully deployed on the XORAI network! π
Last updated