How to deploy contract on pchain

We recommand use online compiler to compile smart contract.
If you wanna testing your smart contract, it’s better to deploy it on testnet first. You can run PCHAIN testnet first.
You can Get free tPI from our testnet.

Compile

Copy your code into it.

../_images/contract.png

Click Details button.

../_images/compile1.png

Copy the Byte Code and ABI/JSON Interface

../_images/bytecode.png

Deploy

Note: You can only deploy smart contract on child chain.
Enter contract page
../_images/contractpage.png

Copy your byte code and click ‘Contract–Deploy Contract’ button.

../_images/deploy1.png

Enter your password and send the transaction.

../_images/maketransaction.png

Wait for the contract address return and copy the address.

../_images/address.png

Interact with Contract

Click ‘Contract–Interact with Contract’ button, copy your ABI/JSON Interface into it and click Access button.

../_images/abi.png