Create a new contract
Last updated
Was this helpful?
Last updated
Was this helpful?
⚠️ Note: This guide supports ink! v5 by default. For experimenting with ink! v6, please refer to our .
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 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 ""
Share the StackExchange question in our