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.


Copy your code into it.


Click Details button.


Copy the Byte Code and ABI/JSON Interface



Note: You can only deploy smart contract on child chain.
Enter contract page

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


Enter your password and send the transaction.


Wait for the contract address return and copy the address.


Interact with Contract

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