Remix
Prerequisites
Access Remix
1
Create Your Contract
1
2
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
contract Counter {
uint256 public count;
event CountChanged(uint256 new Count);
constructor(uint256_initialCount){
count = _initialCount;
}
function increment() public {
count += 1;
emit CountChanged(count);
}
function decrement() public {
require(count > 0, "Count cannot go below zero");
count -= 1;
emit CountChanged(count);
}
functiongetCount() publicviewreturns(uint256){
returncount;
}
}
Compile the Contract
1
2
3
Connect to LitVM
1
2
3
Deploy the Contract
1
2
3
Interact with Your Contract
Read Functions (Free)
Write Functions (Costs Gas)
Example Interaction
1
2
3
4
5
View on Block Explorer
Verify Your Contract
1
2
Deploy an ERC-20 Token
1
2
3
Tips for Using Remix
Save Your Work
Use Workspaces
Debug Transactions
Gas Estimation
Common Issues
Deploy to Mainnet
Next Steps
Resources
Last updated