Deploy contract with Remix
How to deploy a smart contract to ParaTon testnet, mainnet, or a local network using Remix.
Last updated
How to deploy a smart contract to ParaTon testnet, mainnet, or a local network using Remix.
Last updated
Remix is an online IDE that you can use to rapidly develop and deploy smart contracts. If you're new to smart contracts, it's a great tool that lets you jump right in without needing to configure a local editor or struggle through environment configuration issues before getting started.
To learn more about the features available to you as a smart contract developer with Remix, visit the Remix documentation.
Create a new contract file named "Cat.sol".
Next, we will use the NFT contract generated on the previous page and paste the code into "Cat.sol".
Complete any changes to your smart contract and save the final version (Command/Ctrl + S).
After waiting for a few seconds, Remix will load the OpenZeppelin contracts.
Choose the Solidity Compiler Icon on the left side menu.
Check that your compiler version is within the versions specified in the pragma solidity statement.
Select the Compile button to compile your smart contract.
Click the Deploy and Run Transactions Icon on the left side menu.
Choose Injected Web3 as your environment.
Connect MetaMask to ParaTon testnet and verify that the environment reads:
Custom (xxx) network for ParaTon testnet
Custom (xxx) network for ParaTon mainnet
Click Deploy and select Confirm in the MetaMask notification window to pay for the transaction