Skip to content

bill-shuzhou-liu/nano-cli-wallet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nano is a fee-less, fast cryptocurrency. nano-cli-wallet is a headless nano wallet created using node.js. You can use it to create a wallet, send the nano to another address, and receive funds.

Install

npm install

How to use

  • Create a new wallet and save the seed to seed.txt
node wallet.js new > seed.txt
  • Show the address of the wallet just created
cat seed.txt | node wallet.js address

xrb_14w1astamck71wkfrcuumi1xyewpmomqxb6spiom64odi91um9ifcsjej4ns

  • Check the balance will give the error as the account has not been opened yet
cat seed.txt | node wallet.js balance

The account xrb_14w1astamck71wkfrcuumi1xyewpmomqxb6spiom64odi91um9ifcsjej4ns has not been opened yet. Please send some nano to it first.

  • Send some nano to the address from faucet or the faucet game.

  • Check the balance again. It will create receive blocks for pending transactions

cat seed.txt | node wallet.js balance

flush pending receive for xrb_14w1astamck71wkfrcuumi1xyewpmomqxb6spiom64odi91um9ifcsjej4ns. Now balance is 1. The account xrb_14w1astamck71wkfrcuumi1xyewpmomqxb6spiom64odi91um9ifcsjej4ns balance is 1

  • You can also check the balance at Nano crawler.

  • Create another wallet to receive the nano from the first wallet

node wallet.js new > seed1.txt
cat seed1.txt | node wallet.js address
  • Transfer 1 raw nano from the first wallet to the second one
cat seed.txt | node wallet.js send <second_wallet_address> 1
  • Check the balance of second wallet to create receive blocks
cat seed1.txt | node wallet.js balance

Donation

Send some nano to nano_1aipxhoq65mrdrk9yzrb7kp6ah9qz5iedhse5uk4expworbkfbtmwskb7xkg Alt text

About

Nano cryptocurrency command line wallet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published