Rate: ARRR/$

00

00

R: 254

Vol:

00

Pirate chain Logo

Come and join the Pirate Chain community by clicking the below button.

Community

The best way to get support is via our Discord server using the below link.

Pirate Chain Support

How To Run Pirate Using CLI

CLI
Author: 
Published: 
January 12, 2021

How To Run Pirate Using CLI

CLI

2021 Update

Ahoy mateys,

First Mate Kaks has put together some instructions on how to run Pirate using CLI. We hope that you find them useful.

CLI commands

 

Daemon

To run the daemon for PirateChain (use also the next command if running for the first time):

Bootstrap

If you are running the pirate daemon for the first time, to sync faster it is recommended to download the "blockchain files" by using the following command:

getinfo

The getinfo method returns an object containing various information about the wallet and blockchain info.

getwalletinfo

The getwalletinfo method returns an object containing various information about the wallet info.

Mining

Get mining information

z_listaddresses

The z_listaddresses method returns the list of z addresses belonging to the wallet.

z_exportkey

The z_exportkey method reveals the private z_key corresponding to z_address.

z_exportviewingkey

The z_exportviewingkey method reveals the viewing key corresponding to z_address.

z_exportwallet

The z_exportwallet method exports all wallet keys in a human-readable format. Overwriting an existing file is not permitted.

z_getbalance

The z_getbalance method returns the balance belonging to the node’s wallet.

z_getnewaddress

The z_getnewaddress method returns a new z_address for receiving payments.

z_getoperationresult

The z_getoperationresult method retrieves the result and status of an operation which has finished, and then removes the operation from memory.

z_getoperationstatus

The z_getoperationstatus message queries the operation status and any associated result or error data of any operationid stored in local memory. The operation will remain in memory (unlike z_getoperationresult, which removes the data from the local memory).

z_gettotalbalance

The z_gettotalbalance method returns the total value of funds stored in the node’s wallet.

z_importkey

The z_importkey method imports the privatekey to your wallet.

z_importviewingkey

The z_importviewingkey adds a viewing key to your wallet. This method allows you to view the balance in a z address that otherwise does not belong to your wallet.

z_importwallet

The z_importwallet method imports z address keys from a wallet export file.

z_listoperationids

The z_listoperationids method returns the list of operation ids currently known to the wallet.

z_listreceivedbyaddress

The z_listreceivedbyaddress method returns a list of amounts received by a z address belonging to the node’s wallet.

z_listunspent

The z_listunspent method returns an array of unspent shielded notes.

z_validateaddress

The z_validateaddress method returns information about the given z address.

z_sendmany

The z_sendmany method sends one or more transactions at once. It is the principle method for dealing with shielded z transactions.
./pirate-cli z_sendmany "zs1zdg8uye2f6mzn872nm7ugqkpcuevt7g8wszme5pyv0nfc9c5xhuqezak4q53zmecezgawau7s6w" '[{"address":"zs13x6lvn7ah2c28ukzrfaqyd077qszd65uzel47l94yu7hsuktdf986g86mge2vz3rvpx466lpesd","amount":0.01}]'

Volunteer to Support Privacy

4 comments on “How To Run Pirate Using CLI”

  1. Hello,

    If I follow your video on how to migrate from SevenSeas wallet to Pirate Ocean on a Mac, will it automatically migrate my ARRR balance or do I need to do something else to migrate that?

    Thanks,

    Martin

  2. HOW TO GUIDES/TUTORIALS:

    Pirate chain wallet-lite v 1.0.6 no connection: Charles Swank here; I have been directed to go here and go there for instructions
    on "HOW TO RECONNECT Pirate chain wallet-lite v 1.0.6 for a week now and still no resolve. I am not a tech person so I don't understand the tech jargon, does that make sense? That is why I need step by step instructions to reconnect my wallet from somebody
    that knows their stuff. Giving me a computer generated script to follow is not going to work (TECH GARGON). I need instructions from some one that will take the time to guide me in laymen terms. Pirate Chain's FAQ "GENERAL QUESTIONS" does not ask the question, "How do you reconnect Pirate chain wallet-lite v 1.0.6 when I a receive a prompt that displays "NO CONNECTION!" I did loose my connection to my wallet and when I click the Pirate Chain thumb nail, the web page appears and the box in the upper left corner of the page. In that box, I click "RESCAN" and I get the prompt "NO CONNECTION". No rescan, no connection, no access to my wallet. I have my seed phrase, but, that will not reconnect me to my wallet. I know that, because, I went to open a new wallet and it gives you two choices, you can open new wallet with new seed phrase or you can elect to recover your wallet with the seed phrase
    I already have, but, because I have NO CONNECTION, that page will not pop up and get the two prompts, "NO CONNECTION" and ERROR: "Failed to fill whole buffer". I have recovered my wallet using seed phrase and recovered my account before so I know how it works.
    But, I don't know how to recover my connection so I can recover my wallet. Please help me recover my connection.

Leave a Reply