bbcoin
v0.6.8
Published
Wallet cli for btc/eth
Downloads
207
Readme
Install
npm install bbcoin --g
Random bitcoin address
bbcoin genBtc [-testnet]
Query bitcoin balance
bbcoin btcBalance [-testnet]
Send bitcoin
bbcoin sendBtc [-testnet]
Random eth address
bbcoin genEth
Query balance of eth
bbcoin ethBalance
Send eth
bbcoin sendEth
Phrase to address
bbcoin ethPhrase
Private key to address
bbcoin ethPrivate
Show all the erc20 tokens been added
bbcoin showTokens
Create a new erc20 token
bbcoin createToken
Add erc20 token in local list
bbcoin addToken
Remove erc20 token in local list
bbcoin removeToken
token list:https://etherscan.io/tokens
Query the balance of some erc20 token
bbcoin tokenBalance
Send erc20 token
bbcoin sendToken
Lib source
btc: https://github.com/bitcoinjs/bitcoinjs-lib
eth: https://github.com/ethers-io/ethers.js/
Lib examples
btc: https://github.com/bitcoinjs/bitcoinjs-lib#examples
eth: https://learnblockchain.cn/docs/ethers.js/cookbook-accounts.html#id
todo
use tokenLst instead of fetching online: https://tokens.coingecko.com/uniswap/all.json