Plian
English
English
  • 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
      • Desktop Wallet
        • Light Wallet Mode
        • Local Node Mode
      • Mobile Wallets
      • How to Deploy a Smart Contract
    • PMetamask
    • MetaMask
      • How to import PIwallet address to MetaMask?
      • How to connect Metamask to Plian
      • How to import wallet address from MetaMask into PIWallet
      • How to deploy smart contract on Plian via Metamask + Remix
    • Advanced Features
      • Command Line Options
      • Management APIs
      • JSON RPC API
      • How to Sync and Run Testnet
    • How to buy Plian $PI
  • For Developers
    • 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

Was this helpful?

  1. Using The Blockchain
  2. PIwallet
  3. Desktop Wallet

Local Node Mode

PreviousLight Wallet ModeNextMobile Wallets

Last updated 4 years ago

Was this helpful?

Before using the local node mode of PIWallet, make sure you have done the bellow:

  • Installed pchain

  • Sync to the latest height (you can check by )

  • Create Your Account

  • Pchain running RPC (run pchain with flag –rpc –rpcapi=eth,web3,admin,debug,tdm,miner,personal,chain,txpool,del –rpcaddr=0.0.0.0)

  • Opened RPC port to your local IP

  • Copied keystore file to your datadir (required to send transactions)

Pchain RPC’s default port is 6969, remember to open your port 6969 ONLY to your local IP and DO NOT keep your account unlocked for a long time.

First, set the RPC URL in the wallet. The RPC URL is , so suppose you are running pchain on a machine whose IP is 111.222.333.444, and you open RPC with pchain default RPC port, and you wanna interact with main chain, the RPC URL should be http://111.222.333.444:6969/pchain. If you want to interact with subchain which chain id is child_0, the RPC URL should be http://111.222.333.444:6969/child_0.

After this, PIWallet will read the chain state to the wallet.

If you are having issues sending transactions in local node mode, make sure the keystore on your connected node is in the correct place. Your datadir looks like the below:

datadir/
        -chaininfo.db/
        -config.toml
        -nodekey
        -nodes/
        -tx3cache/
        -pchain/
                -data/
                -geth/
                -pchain.ipc
                -priv_validator.json
                -keystore/   //you should put your keystore file under here
        -child_0/
                -data/
                -geth/
                -pchain.ipc
                -priv_validator.json
                -keystore/       //you should put your keystore file under here
Monitor
http://yourserverip:rpcport/chainid