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
  • Installing and setting up MetaMask
  • Configuring the wallet

Was this helpful?

  1. For Developers

How to connect Metamask to Plian

PreviousFor DevelopersNextHow to deploy smart contract on Plian via Metamask + Remix

Last updated 1 year ago

Was this helpful?

Installing and setting up MetaMask

MetaMask can be downloaded on Chrome and Firefox, or on iOS and Android if you’re a mobile user. For the purposes of this tutorial, we’ll use the Firefox version, but the instructions will be more or less the same for every platform.

Firstly, you’ll want to head over to the MetaMask . From there, select whichever platform you’re using, and follow the steps to install it on your device. Easy!

Next, follow along with the setup specified by the app. Go ahead and click Create a Wallet. Write down the backup somewhere secret (preferably not on an Internet-connected device). Without this phrase, your funds can’t be recovered if your device is damaged or lost. Confirm that you’ve written them down on the next page.

And that’s it! You should now see your wallet, ready to send and receive funds.

Configuring the wallet

We want to access the Custom RPC to point the wallet towards Plian nodes.

On the setting page, we want to locate the Networks menu.

We want to click Add Network in the top-right corner to manually add the Plian one – it doesn’t come packaged with MetaMask. It’s important to note that there are two networks we can use here: the testnet or the mainnet. Below are the parameters to fill in for each.

Mainnet

  • Main chain

Network Name: Plian-Mainchain

ChainID: 2099156

Symbol: PI

  • Subchain1

Network Name: Plian-Subchain1

ChainID: 8007736

Symbol: PI

Testnet

Network Name: Plian-

ChainID: 10067275

Symbol: TPI

We’re going to use the testnet in this tutorial, but you will likely want to use the mainnet. We recommend adding both if you intend to use MetaMask to transfer PI. Once you Save the Network and return to the main view, you’ll notice two things: the network has automatically been set to the one you just entered, and the units are no longer denominated in ETH, but in PI.

You might notice straight away that we’re still dealing with an wallet. At best, this won’t work with Plian network. At worst, you could lose funds by sending them to addresses you can’t actually use.Let’s change that.

New RPC URL:

Block Explorer URL:

Subchain1 New RPC URL: child-0

Block Explorer URL:

New RPC URL:

Block Explorer URL:

Faucet:

Ethereum
https://mainnet.plian.io/pchain
https://piscan.plian.org/?chain=0
https://mainnet.plian.io/
https://piscan.plian.org/?chain=1
https://testnet.plian.io/child_test
https://testnet.plian.org/child_test
https://testnet.pchain.org/vfaucet.html
Download page
seed phrase