How to Deploy

Here, we will provide information on how to deploy your Smart Contract

Are you ready? Do you have your smart contract ready? the .pvm & .abi file?

If not, go and compile it with Tomb Compiler.

Using Cman

For using Cman, we need to compile it, or download the Published files at the repository. Step by step on how to do it.

  1. Download the Published (Compiled) files.

  2. Extract them to a folder.

  3. Enter the folder, open up the terminal or command line there.

  4. Now let's type some commands:

cman.exe deploy --contract "/path/to/the/.pvm" --wif "yourWif" --rpc-url "" --nexus "testnet"

Arguments explanation

All the arguments that can be used.

  • --contract <value> -> attribute to select the path to the contract .pvm (/path/to/some/contract.pvm).

  • --rpc-url <value> -> attribute to select the rpc url.

  • --wif <value> -> attribute to set the wif of the wallet used to deploy the contact.

  • --nexus <value> -> attribute to select the nexus name.

  • --token -> attribute to deploy if the smart contract is a token

  • --update -> attribute to update the smart contract previously deployed

Using Phantasma HUB

Go to the Phantasma HUB where you can deploy your contract and do much more than that!

Phantasma - Hub

  1. Go to the contract Management Tab

  1. Now select Deploy contract ( This would be the same for updating the contract )

  1. Fill the Contract/Token name, upload the .pvm and .abi files

Don't forget: Don't forget to connect your wallet and then you can deploy your token or contract.

  1. Deploy to the chain.

Last updated