From 64ed44072967594d3c17ee1d664ea7a2a1de558f Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Mon, 16 May 2016 17:07:26 -0400 Subject: [PATCH] docs: update docs to reflect api changes --- docs/services/bitcoind.md | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/docs/services/bitcoind.md b/docs/services/bitcoind.md index b28d2699..b07fe2d6 100644 --- a/docs/services/bitcoind.md +++ b/docs/services/bitcoind.md @@ -131,6 +131,11 @@ node.services.bitcoind.getBlock(blockHash, function(err, block) { node.services.bitcoind.getBlockHeader(blockHeight, function(err, blockHeader) { //... }); + +// get the block with a list of txids +node.services.bitcoind.getBlockOverview(blockHash, function(err, blockOverview) { + //... +}; ``` **Retrieving and Sending Transactions** @@ -151,11 +156,9 @@ node.services.bitcoind.getTransaction(txid, function(err, transaction) { //... }); -// also retrieve the block timestamp and height -node.services.bitcoind.getTransactionWithBlockInfo(txid, function(err, transaction) { - console.log(transaction.__blockHash); - console.log(transaction.__height); - console.log(transaction.__timestamp); // in seconds +// retrieve the transaction with input values, fees, spent and block info +node.services.bitcoind.getDetailedTransaction(txid, function(err, transaction) { + //... }); ``` @@ -240,11 +243,7 @@ The history format will be: } }, satoshis: 1000000000, - height: 150, // the block height of the transaction - confirmations: 3, - timestamp: 1442948127, // in seconds - fees: 191, - tx: // the populated transaction + tx: // the same format as getDetailedTransaction } ] }