Create a new contract
To create a smart contract with Pop CLI:
The above command will guide you through an interactive prompt to create a new smart contract:
Notice that there are several templates available.
To get a full list of available templates run pop new contract --help
You can also create a new smart contract manually (without interactivity):
Note: this will create a contract using the default template which is based on the
flipper
contract example.
You should get output like the following:
You can now cd
into the folder and start hacking on your contract:
You should see the directory structure of your ink! smart contract:
Several options are available when creating a smart contract manually.
To see all the available options, run pop new contract --help
For example:
Further Reading Material
Technical Support
Create a question and tag it with "
pop
"Share the StackExchange question in our Pop Support Telegram channel
Last updated