bitcore-client
Wallet client for Bitcore node
Last updated 7 months ago by nitsujlangston .
Original npm · Tarball · package.json
$ cnpm install bitcore-client 
SYNC missed versions from official npm registry.

Bitcore Client

A helper to create a wallet using the bitcore-v8 infrastructure.

Purpose

This repo should allow you to create a wallet using the bitcore-v8 infrastructure.

Currently we have the following features

  • Wallet Creation
  • Importing Addresses to the Wallet
  • View Only
  • Send Enabled by including the privKey
  • Instant balance checking
  • Transaction Creation
  • Transaction Signing
  • Transaction Broadcasting
  • Multi-Sig address derive/importing

Commands

Wallet Create

No baseUrl flag will automatically create a wallet that points to https://api.bitcore.io/api.

./wallet-create --name TestWalletBTC --chain BTC --network mainnet

To create a wallet to point to local bitcore-node.

./wallet-create --name myregtestwallet --chain BCH --network regtest --baseUrl http://localhost:3000/api

Register an Existing Wallet

Register an existing wallet to point to custom Bitcore API url.

./wallet-register --name myregtestwallet --baseUrl https://api.bitcore.io/api

Or a local Bitcore-node

./wallet-register --name myregtestwallet --baseUrl http://localhost:3000/api

Wallet Address Import

You can import a jsonl file. privKey and pubKey are optional. If you provide privKey, pubKey must be provided as well.

//~/Desktop/export.jsonl
{"address": "mXy1234", privKey: "xxxxxxx", pubKey: "yyyyyyyy"}
{"address": "mXy1234", privKey: "xxxxxxx", pubKey: "yyyyyyyy"}
{"address": "mXy1234", privKey: "xxxxxxx", pubKey: "yyyyyyyy"}
./wallet-import --name TestWalletBTC --file ~/Desktop/export.jsonl

You can also import an address in json format in the command line.

./wallet-import --name myregtestwallet --parse '[{"address":"mXy1234"}]'

Balance Checking

./wallet-balance --name TestWalletBTC

Balance Checking at Specific Date or Time

./wallet-balance --name TestWalletBTC --time 01-15-2019

Valid types of time (no slash marks allowed):

1-14-2019
"Wed Jan 16 2019 13:34:20 GMT-0500 (Eastern Standard Time)"
"2019-01-16T18:47:33.396Z"

Wallet UTXOS

./bin/wallet-utxos --name TestWalletBTC

Transaction Creation

./bin/wallet-tx --addresses '[{"address": "moVf5Rf1r4Dn3URQHumEzvq3vtrFbaRvNr", "satoshis": 2500000000}]' --fee 100 --utxos '[{"txid":"28321f501ce47db1fd40d9ad461624bf9fe6cb581ac0177d17304ff128b86d61","vout":0,"address":"mhwfzHhBdpUKLTzGkUEUpJWa3ipTYZHjF8","script":"21033a3c1aa3fb35e07fe7ff44423c8d378c2d4610ffac8b08c4e6747d7573566937ac","value":5000000000}]' --change "mz21R16FYXfA6G4EJdCrTsduvX9BHHecvv" --name TestWalletBTC --amount 2500000000

Transaction Signing

./bin/wallet-sign --name TestWalletBTC --tx 0100000001616db828f14f30177d17c01a58cbe69fbf241646add940fdb17de41c501f32280000000000ffffffff0200f90295000000001976a914578237b9848cc709ced0e098417e0494415add1488ac9cf80295000000001976a914caf0ee682de3daa9b3640da1f6d47cc04ce2c99e88ac00000000

Transaction Broadcast

./bin/wallet-broadcast --name TestWalletBTC --tx 0100000001616db828f14f30177d17c01a58cbe69fbf241646add940fdb17de41c501f32280000000048473044022052cf595274c422c37d140989c8cc31c95b39d326b5eac8d4feb8bcceebdebc3f02205635c798c24ae1d44d0871e6938dbfd76293e695131d890838654816f28b942401ffffffff0200f90295000000001976a914578237b9848cc709ced0e098417e0494415add1488ac9cf80295000000001976a914caf0ee682de3daa9b3640da1f6d47cc04ce2c99e88ac00000000

Paypro Payment

./bin/wallet-paypro --name TestWalletBTC --payProUri 'https://bitpay.com/i/Dd8q13AnnVyYM7pcMBHfv'

Contributing

See CONTRIBUTING.md on the main bitcore repo for information about how to contribute.

License

Code released under the MIT license.

Copyright 2013-2019 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc.

Current Tags

  • 11.5.2                                ...           beta (2 months ago)
  • 10.10.15                                ...           latest (7 months ago)

151 Versions

  • 11.5.2                                ...           2 months ago
  • 11.5.1                                ...           2 months ago
  • 11.5.0                                ...           3 months ago
  • 11.4.7                                ...           3 months ago
  • 11.4.5                                ...           4 months ago
  • 11.4.1                                ...           5 months ago
  • 11.4.0                                ...           5 months ago
  • 11.3.7                                ...           6 months ago
  • 11.3.6                                ...           6 months ago
  • 11.3.3                                ...           6 months ago
  • 11.3.2                                ...           7 months ago
  • 11.3.1                                ...           7 months ago
  • 10.10.15                                ...           7 months ago
  • 10.10.14                                ...           8 months ago
  • 11.2.4                                ...           8 months ago
  • 10.10.13                                ...           8 months ago
  • 11.2.0                                ...           9 months ago
  • 10.10.8                                ...           9 months ago
  • 11.1.7                                ...           9 months ago
  • 10.10.7                                ...           9 months ago
  • 10.10.6                                ...           9 months ago
  • 10.10.5                                ...           9 months ago
  • 10.10.4                                ...           9 months ago
  • 11.1.4                                ...           9 months ago
  • 11.1.1                                ...           10 months ago
  • 10.10.1                                ...           10 months ago
  • 11.1.0                                ...           10 months ago
  • 10.10.0                                ...           10 months ago
  • 11.0.2                                ...           10 months ago
  • 10.9.4                                ...           10 months ago
  • 11.0.1                                ...           10 months ago
  • 10.9.3                                ...           10 months ago
  • 11.0.0                                ...           10 months ago
  • 10.9.2                                ...           a year ago
  • 10.9.1                                ...           a year ago
  • 10.9.0                                ...           a year ago
  • 10.8.10                                ...           a year ago
  • 10.8.9                                ...           a year ago
  • 10.8.8                                ...           a year ago
  • 10.8.7                                ...           a year ago
  • 10.8.6                                ...           a year ago
  • 10.8.0                                ...           a year ago
  • 10.7.0                                ...           a year ago
  • 10.6.2                                ...           a year ago
  • 10.5.5                                ...           a year ago
  • 10.5.3                                ...           2 years ago
  • 10.5.2                                ...           2 years ago
  • 10.4.1                                ...           2 years ago
  • 10.3.0                                ...           2 years ago
  • 10.2.1                                ...           2 years ago
  • 10.1.0                                ...           2 years ago
  • 10.0.39                                ...           2 years ago
  • 10.0.37                                ...           2 years ago
  • 10.0.36                                ...           2 years ago
  • 10.0.34                                ...           2 years ago
  • 10.0.33                                ...           2 years ago
  • 10.0.32                                ...           2 years ago
  • 10.0.31                                ...           2 years ago
  • 10.0.30                                ...           2 years ago
  • 10.0.28                                ...           2 years ago
  • 10.0.27                                ...           2 years ago
  • 10.0.25                                ...           2 years ago
  • 10.0.24                                ...           2 years ago
  • 10.0.23                                ...           2 years ago
  • 10.0.21                                ...           2 years ago
  • 10.0.20                                ...           2 years ago
  • 10.0.18                                ...           2 years ago
  • 10.0.17                                ...           2 years ago
  • 10.0.16                                ...           2 years ago
  • 10.0.15                                ...           2 years ago
  • 10.0.14                                ...           2 years ago
  • 10.0.13                                ...           2 years ago
  • 10.0.12                                ...           3 years ago
  • 10.0.11                                ...           3 years ago
  • 10.0.5                                ...           3 years ago
  • 10.0.3                                ...           3 years ago
  • 10.0.2                                ...           3 years ago
  • 10.0.0                                ...           3 years ago
  • 9.0.0                                ...           3 years ago
  • 8.25.47                                ...           3 years ago
  • 8.25.46                                ...           3 years ago
  • 8.25.44                                ...           3 years ago
  • 8.25.43                                ...           3 years ago
  • 8.25.42                                ...           3 years ago
  • 8.25.41                                ...           3 years ago
  • 8.25.40                                ...           3 years ago
  • 8.25.39                                ...           4 years ago
  • 8.25.38                                ...           4 years ago
  • 8.25.37                                ...           4 years ago
  • 8.25.36                                ...           4 years ago
  • 8.25.35                                ...           4 years ago
  • 8.25.34                                ...           4 years ago
  • 8.25.31                                ...           4 years ago
  • 8.25.30                                ...           4 years ago
  • 8.25.28                                ...           4 years ago
  • 8.25.27                                ...           4 years ago
  • 8.25.25                                ...           4 years ago
  • 8.25.24                                ...           4 years ago
  • 8.25.23                                ...           4 years ago
  • 8.25.22                                ...           5 years ago
  • 8.25.21                                ...           5 years ago
  • 8.25.16                                ...           5 years ago
  • 8.25.14                                ...           5 years ago
  • 8.25.13                                ...           5 years ago
  • 8.25.12                                ...           5 years ago
  • 8.25.10                                ...           5 years ago
  • 8.25.9                                ...           5 years ago
  • 8.25.8                                ...           5 years ago
  • 8.25.7                                ...           5 years ago
  • 8.25.4                                ...           5 years ago
  • 8.25.3                                ...           5 years ago
  • 8.25.2                                ...           5 years ago
  • 8.25.1                                ...           5 years ago
  • 8.25.0                                ...           5 years ago
  • 8.24.2                                ...           5 years ago
  • 8.24.1                                ...           5 years ago
  • 8.24.0                                ...           5 years ago
  • 8.23.1                                ...           5 years ago
  • 8.23.0                                ...           5 years ago
  • 8.22.2                                ...           6 years ago
  • 8.22.1                                ...           6 years ago
  • 8.22.0                                ...           6 years ago
  • 8.21.0                                ...           6 years ago
  • 8.20.5                                ...           6 years ago
  • 8.20.4                                ...           6 years ago
  • 8.20.3                                ...           6 years ago
  • 8.20.2                                ...           6 years ago
  • 8.20.1                                ...           6 years ago
  • 8.20.0                                ...           6 years ago
  • 8.19.0                                ...           6 years ago
  • 8.17.1                                ...           6 years ago
  • 8.17.0                                ...           6 years ago
  • 8.16.2                                ...           6 years ago
  • 8.16.0                                ...           6 years ago
  • 8.15.0                                ...           6 years ago
  • 8.14.4                                ...           6 years ago
  • 8.14.3                                ...           6 years ago
  • 8.14.1                                ...           6 years ago
  • 8.14.0                                ...           6 years ago
  • 8.13.2                                ...           6 years ago
  • 8.13.1                                ...           6 years ago
  • 8.13.0                                ...           6 years ago
  • 8.12.0                                ...           6 years ago
  • 8.11.1                                ...           6 years ago
  • 8.11.0                                ...           6 years ago
  • 8.10.2                                ...           6 years ago
  • 8.10.1                                ...           6 years ago
  • 8.10.0                                ...           6 years ago
  • 8.9.0                                ...           6 years ago
  • 8.6.0                                ...           7 years ago
  • 8.1.0                                ...           7 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (17)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |