From 553b13dab79f98eb3a0f31621515bf14836bb41b Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 29 Jan 2016 12:14:04 -0800 Subject: [PATCH] docs: searching. --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ae97cb62..50bf00ef 100644 --- a/README.md +++ b/README.md @@ -1285,11 +1285,14 @@ propogate data throughout the network. the blockchain to the timestamp of the last TX the wallet contains in its TXPool (SPV-only). - __removeWallet(wallet)__ - Remove wallet from watch list (SPV-only). -- __search([id], range)__ - Search a timestamp range, watch for `id` (SPV-only). +- __search([id], range)__ - Search a timestamp range, watch for `id` + (SPV-only). `range` is a timestamp range: `{ start: unixSeconds, end: + unixSeconds }`. - __getBlock(hash, callback)__ - Request block from peer. - __sendBlock(block)__ - Broadcast a block. -- __getTX(txid, callback)__ - Attempt to search for a particular transaction - (SPV-only). +- __getTX(txid, range, callback)__ - Attempt to search for a particular + transaction (SPV-only). `range` is a timestamp range: `{ start: unixSeconds, + end: unixSeconds }`. - __sendTX(tx)__ - Broadcast a transaction. - __broadcast(block/tx)__ - Broadcast block or TX. - __destroy()__ - Destroy pool and peers.