Giter VIP home page Giter VIP logo

pi-wallet-cli's Introduction

Pi Wallet CLI Banner

Pi Wallet CLI

GitHub

Getting Started: A Simple Walkthrough

  1. Setup the pi-wallet command globally
git clone https://github.com/limitpointinf0/pi-wallet-cli
cd pi-wallet-cli
npm i -g
  1. Set your default account. You may unset it or set a different one later.
pi-wallet set

This will ask you for your account address which is your public key.

  1. After you've set your default account, you can check your balances for all assets with the following
pi-wallet check
  1. Making a transfer is simple. Just run the following and follow directions
pi-wallet transfer
  • Source Account Passphrase/PrivateKey: [Your wallet passphrase or private key]
  • Destination Account: [Wallet address of the account you want to send to]
  • Asset: [Name of asset you want to send. Leave blank if you want to just send Pi]
  • Asset Issuer: [Address for the asset issuer account. Leave blank for Pi]
  • Transfer Amt: [Amount of the asset you want to send]
  • Memo: [An optional memo for this transaction]

After setting the above, the transaction will be signed and sent and you should receive the results shortly.

Extra Features

Creating Trustlines

If you would like to allow your account to send and recieve custom assets, you will first need to setup a trustline which requires both the asset name and asset issuer account address.

pi-wallet trust

If the trustline setup succeeds, you can check your account balance and see the new asset is added with a balance of 0

pi-wallet check

Purchasing/Selling an Asset

Purchasing/Selling an asset may be done using the following

pi-wallet purchase

or

pi-wallet sell
  • Source Account Passphrase/PrivateKey: [Your wallet passphrase or private key]
  • Asset Name to Buy/Sell: [Name of the asset you want to purchase/sell]
  • Amount of Asset to Buy/Sell: [Amount of asset you want to purchase/sell]
  • Buying/Selling Asset: [Name of asset you want to trade]
  • Price per unit: [Price of asset per unit]
  • Issuer Account Address: [Address of issuer account for this asset]

Creating a Custom Asset

Creating an asset may be done using the following

pi-wallet createasset
  • Issuer Account Address: [Issuer public key]
  • Issuer Account Passphrase/Private Key: [Issuer account passphrase or private key]
  • Distributor Account Address: [Distributor public key]
  • Distributor Account Passphrase/Private Key: [Distributor account passphrase or private key]
  • Asset Name: [Name for your asset]
  • Asset Amount: [Amount of asset you want to create]
  • Asset Data [name]: [Key for key/value pair, data regarding the asset]
  • Asset Data [value]: [Value for key/value pair, data regarding the asset]

pi-wallet-cli's People

Contributors

limitpointinf0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pi-wallet-cli's Issues

Python version

Is there any Python version of this script? It will be very nice if a python version will be available. Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.