@@ -927,6 +927,34 @@ class BitcoinClient extends jsonrpc_client {
927927 return $ this ->query ("listtransactions " , $ account , $ count , $ from );
928928 }
929929
930+ /**
931+ * Returns all transactions in blocks since block [blockhash], or all transactions if omitted.
932+ * [target-confirmations] intentionally does not affect the list of returned transactions,
933+ * but only affects the returned "lastblock" value.
934+ *
935+ * @param string $blockhash Start block
936+ * @param integer $targetconfirmations Affects the returned "lastblock" value
937+ * @return array
938+ * "account" => account of transaction
939+ * "address" => address of transaction
940+ * "category" => 'send' or 'recieve'
941+ * "amount" => Amount sent/recieved
942+ * "fee" => Only on sent transactions, transaction fee taken
943+ * "confirmations" => Confirmations
944+ * "blockhash" => The block hash containing the transaction. Available for 'send' and 'receive' category of transactions.
945+ * "blockindex" => The block index containing the transaction. Available for 'send' and 'receive' category of transactions
946+ * "blocktime" => The block index containing the transaction. Available for 'send' and 'receive' category of transactions.
947+ * "txid" => Transaction ID
948+ * "time" => Time of transaction
949+ */
950+ public function listsinceblock ($ blockhash = NULL , $ targetconfirmations = NULL ) {
951+ if (!$ blockhash )
952+ return $ this ->query ("listsinceblock " );
953+ if (!$ targetconfirmations )
954+ return $ this ->query ("listsinceblock " , $ blockhash );
955+ return $ this ->query ("listsinceblock " , $ blockhash , $ targetconfirmations );
956+ }
957+
930958 /**
931959 * Returns the list of accounts.
932960 *
0 commit comments