Comparing version 1.1.2 to 1.1.3
@@ -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', |
{ | ||
"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); | ||
}); | ||
``` |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
17070
9
440
58
0
2