πSmart Contracts
SafeChain supports Solidity based smart contracts. Smart contracts are self-executing computer programs that are built on top of blockchain. They operate based on a set of predetermined rules and co
New to Solidity?
Solidity is a high-level programming language that is used to write smart contracts on the SafeChain blockchain. This language is used in other EVM based blokchains as well. It is a contract-oriented language that is designed to be easy to learn and understand for developers.
Here are some great resources for learning Solidity:
Solidity tutorial for programmers
Smart Contracts in SafeChain vs Ethereum
SafeChain is EVM compatible blockchain as hence supports all the tools like Remix, truffle, hardhat, etc.
Remix
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
Click compile button
Deploy contract to blockchain via wallet such as MetaMask
.
Set network info in
Metamask
.Back to
Remix
.Switch environment
Select contract
click deploy button
Last updated