Code Monkey home page Code Monkey logo

bgld-cli's Introduction

bgld-cli

A CLI tool for interacting with the Bitgesell blockchain network for managing:

  • Addresses
  • Private Keys
  • Transactions (WIP)
  • Wallets

Installation

npm i -g bgld-cli # yarn add --global bgld-cli

bgld-cli is still in beta.

Usage

Basic help and bgld-cli version can be checked by simply typing the following on a terminal.

nmurgor@nmurgor:$ bgld-cli
Usage: bgld-cli [options] [command]

bgld-cli, - A cli utility for interacting with the Bitgesell Blockchain Network

Options:
  -V, --version             output the version number
  -h, --help                display help for command

Commands:
  address <--network>       Generate an an address (base58 encoded)
  wallet <--network>        Generate a Wallet
  transactions <--network>  encode at transaction [WIP]
  help [command]            display help for command

Address

Currently supports interaction with mainnet. Tesnet will be added in future releases.

All addresses(Public/Private key pairs) are exported to the home folder in JSON format:

To generate an address:

nmurgor@nmurgor:$ bgld-cli address mainnet # address <network>
Genertated address for Mainnet(base58): bgl1q83vpa00xcv38swrquhggvvwafxsdwklsffa80m
Private Key(hex): 6c67b1f1b9f3c587fd6c257e2e1fdf2f67922de04e3c57f441a4d49616a0766d
Saved to : /home/nmurgor/bgl1q83vpa00xcv38swrquhggvvwafxsdwklsffa80m.json

Note: Always keep your keys safe. Anyone with access to private keys can drain your Wallet.

Wallet

Currently supports interaction with mainnet. Tesnet will be added in future releases.

All Wallets(Public/Private key pairs) are exported to the home folder in JSON format:

To generate a wallet:

nmurgor@nmurgor:$ bgld-cli address mainnet # address <network>
Genertated address for Mainnet(base58): bgl1q83vpa00xcv38swrquhggvvwafxsdwklsffa80m
Private Key(hex): 6c67b1f1b9f3c587fd6c257e2e1fdf2f67922de04e3c57f441a4d49616a0766d
Saved to : /home/nmurgor/bgl1q83vpa00xcv38swrquhggvvwafxsdwklsffa80m.json

Note: Always keep your keys safe. Anyone with access to private keys can drain your Wallet.

nmurgor@nmurgor$ bgld-cli wallet mainnet
Successfully generated wallet for mainnet: 

Wallet PrivateKey: zprvAdZDy3B88MeASBzRxuhba6VJJYAjuafpDcxJT8pubKQ9dZsGv736BmtxGN9cBTbfHmaokvKUG7KEorSkhHDXgdg5jC1HrCg98VFestGJMbE

Wallet seed phrase: electric deer creek blood corn gasp lonely travel speak below clutch outside scout deliver detail weapon accident donor upon business adult together donor shiver
Saved to : /home/nmurgor/wallet.json
nmurgor@nmurgor:/media/nmurgor/3C51BA0C2E13BF5E/bounties/blgd-ts$ 

Contributing

All contributions are highly welcome.

License

MIT

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.