Skip to content

Scripts and tools for Bitcoin, Colored Coins and other Bitcoin-based blockchains

License

Notifications You must be signed in to change notification settings

fed-franz/btcutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

btc-utils

Scripts and tools for Bitcoin

start-bitcoind

Script for the Bitcoin-Core client. It starts the bitcoind daemon and wait until it is fully initialized. (I wrote it because bitcoind gives no feedback of its status so the way to know if it's done with loading is to manually probe it via RCP or bitcoin-cli) This automatically probe bitcoind and prints the status feedback until the initiazlization phase is finished. (Init phase consists of: Loading block index, rewinding blocks, verifying, and downloading missing blocks). The script terminates when all the blocks have been downloaded.

Requirements:

___ USAGE ___

Parameters:

  • NET = {main,test} | Default: main
  • BCPATH = Bitcoin-Core folder | Default: /opt/bitcoin

Example: start-bitcoind test /path/to/bitoin-folder

btc-addr-utils

Library for Bitcoin addresses management.

Requirements:

  • 'bitcore-lib': npm install bitcore-lib

Functions:

  • createBTCKey: create a new Bitcoin private key
  • getBTCNetwork(privKey, net): it returns the Mainnet/Testnet address corresponding to a private key
  • getBTCAddr(addr): determine if the address belongs to the Mainnet or the Testnet network
  • isValidAddr(addr): check if the address is a valid Bitcoin address
  • isValidMainnetAddr(addr): check if the address is a valid Mainnet address
  • isValidTestnetAddr(addr): check if the address is a valid Testnet address

About

Scripts and tools for Bitcoin, Colored Coins and other Bitcoin-based blockchains

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published