Deploying a Contract Using Remix-IDE
Last updated
Last updated
Remix Project is a development tool that provides developers with the necessary technologies and features for the entire smart contract development process. It also serves as an educational platform for learning and experimenting with Ethereum.
Access and navigate to File Explorer, then click ≡ (menu icon). Select [ + Create Blank ] to create a new Workspace.
Create a new file named counter.sol
and enter the contract code or use the provided sample code.
Go to the [ Solidity Compile ] sidebar option and select counter.sol
to compile the contract.
Navigate to the [ Deploy & Run Transactions ] sidebar option.
Change the ENVIRONMENT dropdown to "Injected Provider - MetaMask".
In MetaMask, click [ Connect ] to grant Remix access.
Once MetaMask is connected, click the [ Deploy ] button to deploy the contract.
After deploying the contract, interaction is available in the bottom-left tab of Remix.
Click [ number ] to retrieve the stored number in the contract. The default value after deployment is 0.
Click [ increment ] to send a transaction that increases the number by +1. Confirm the transaction in MetaMask, which will then be sent to the dKargo Chain.
Click [ number ] again to verify that the stored number has increased by 1.
The deployed contract can be verified in.