Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bitcoin

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitcoin - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

lib/bitcoin/markets.js

6

lib/bitcoin/client.js

@@ -23,2 +23,4 @@

getInfo: 'getinfo',
getMemorypool: 'getmemorypool',
getMemoryPool: 'getmemorypool',
getNewAddress: 'getnewaddress',

@@ -31,5 +33,7 @@ getReceivedByAccount: 'getreceivedbyaccount',

keypoolRefill: 'keypoolrefill',
keyPoolRefill: 'keypoolrefill',
listAccounts: 'listaccounts',
listReceivedByAccount: 'listreceivedbyaccount',
listReceivedByAddress: 'listreceivedbyaddress',
listSinceBlock: 'listsinceblock',
listTransactions: 'listtransactions',

@@ -43,4 +47,6 @@ move: 'move',

setTxFee: 'settxfee',
signMessage: 'signmessage',
stop: 'stop',
validateAddress: 'validateaddress',
verifyMessage: 'verifymessage',
walletLock: 'walletlock',

@@ -47,0 +53,0 @@ walletPassphrase: 'walletpassphrase',

2

package.json
{
"name": "bitcoin",
"description": "Communicate with bitcoind via JSON-RPC",
"version": "1.1.2",
"version": "1.1.3",
"main": "./lib/bitcoin",

@@ -6,0 +6,0 @@ "keywords": [

@@ -31,11 +31,28 @@ # node-bitcoin

## Example
## Examples
### Create client
```js
var bitcoin = require('bitcoin');
var client = new bitcoin.Client('localhost', 8332, 'username', 'password');
```
client.getBalance(function(err, balance) {
### Create client with single object
```js
var client = new bitcoin.Client({
host: 'localhost',
port: 8332,
username: 'username',
password: 'password'
});
```
### Get balance across all accounts with minimum confirmations of 6
```js
client.getBalance('*', 6, function(err, balance) {
if (err) return console.log(err);
console.log("Balance:", balance);
console.log('Balance:', balance);
});
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc