Plian
Chinese
Chinese
  • Overview
  • Links
  • Downloads
  • FAQ
    • Node Status
    • Full Balance
    • Flow and FAQ on Becoming a Validator
    • Delegation
    • Staking Rewards
    • Monitor
    • PIScan
    • PIWallet
    • Cross-Chain Transactions
    • DApps
  • About The Blockchain
    • Multichain Framework
    • PDBFT 2.0 Consensus Algorithm
    • Validator Nodes
    • Building with Plian
  • Using The Blockchain
    • Overview
    • Delegating or Staking PI
    • Validator Node Guides
      • Express Node Setup Guide
      • Setting Up a Validator Node
      • Registering Your Node as Validator
      • Submitting Your Vote as Validator
      • Revealing Your Vote
      • Removing Your Node From the Candidate List
      • Alternate Installation Instructions
        • Building From the Source
        • Running Pchain in Docker
        • Installation Instructions for Ubuntu
        • Installation Instructions for Mac OS X
        • Installation Instructions for Windows 10
      • What is FullBalance
    • Token Swaps
    • Plian Javascript Console
    • PIwallet
      • Web
      • Desktop Wallet
        • Light Wallet Mode
        • Local Node Mode
      • Mobile Wallets
      • How to Deploy a Smart Contract
    • PMetamask
    • Advanced Features
      • Command Line Options
      • Management APIs
      • JSON RPC API
      • How to Sync and Run Testnet
  • For Developers
    • How to connect Metamask to Plian
    • How to deploy smart contract on Plian via Metamask + Remix
    • PWeb3 Javascript API
    • How to Create Your Own Subchain
    • Writing Smart Contracts With Solidity
      • Introduction to Smart Contracts
      • Installing the Solidity Compiler
      • Solidity by Example
      • Solidity in Depth
        • Layout of a Solidity Source File
        • Structure of a Contract
        • Types
        • Units and Globally Available Variables
        • Expressions and Control Structures
        • Contracts
        • Solidity Assembly
        • Miscellaneous
      • Security Considerations
      • Resources
      • Using the compiler
      • Contract Metadata
      • Contract ABI Specification
      • Yul
      • Style Guide
      • Common Patterns
      • List of Known Bugs
      • Contributing
      • Frequently Asked Questions
      • LLL
      • Index
Powered by GitBook
On this page
  • Installation
  • Connect Remix and PMetamask
  • Deploy and interact with smart contract

Was this helpful?

  1. Using The Blockchain

PMetamask

PreviousHow to Deploy a Smart ContractNextAdvanced Features

Last updated 2 years ago

Was this helpful?

PMetamask is a web browser plug-in wallet.

Currently, Plian is compatible with any EVM developer tools like Metamask, Remix, etc. So we suggest you directly .

Installation

First, download PMetamask installation package from . Then open Chrome and input chrome://extensions/ to enter extensions page:

Switch to Developer mode on top right of the explorer and drag the PMetamask installation package into it to install the plug-in.

After create or import address by following the guide of PMetamask,you can see something look like this:

Connect Remix and PMetamask

Under Remix’s ‘Run’ menu,select the Environment as ‘Injected Web3’:

Click ‘connect’ on the popup PMetamask Notification dialog

After that,the default account’s address in PMetamask will shown in ‘Account’ field automatically.

Deploy and interact with smart contract

Edit smart contract in Remix,e.g:

pragma solidity ^ 0.4.23 ;
contract PCHAINTest{

  uint public value = 0;
  function inc(uint v) public {
    value += v;
  }
}

select the proper version to compile(here we take version 0.4.23 as an example):

compile smart contract

Click the ‘Deploy’ button under ‘Run’ menu to deploy the smart contract just complied

After click the ‘deploy’ button,click the ‘confirm’ button on PMetamask Notification dialog:

After deployed successfully, you can debug the contract If there are operations need to spend Gas, you may need confirm in the pop-up PMetamask dialog or in PMetamask directly.If the transaction failed, you can try to resend it or change the gas fee according to the returned error.

Plian's smart contract can only be deployed on subchain. We choose the subchain 1 on Plian testnet to deploy smart contract. You can get free tPI on this subchain from .

Keep PMetamask opening,open Remix【】 the page is look like this:

here
http://remix.ethereum.org
use Metamask to deploy smart contract on Plian
here