From 58ec4b43fba3b78af283d54bff125f11c23e5da2 Mon Sep 17 00:00:00 2001 From: Aakil Fernandes Date: Thu, 25 Aug 2016 00:27:47 -0400 Subject: [PATCH] getBlocks api comments --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 890ea9b..59b39ee 100644 --- a/index.js +++ b/index.js @@ -300,7 +300,9 @@ Blockchain.prototype.getBlock = function (hash, cb) { /** *Gets a block by its hash * @method getBlocks - * @param blockId - the block's hash or number + * @param {Buffer|Number} blockId - the block's hash or number + * @param {Number} skip - number of blocks to skip + * @param {Bool} reverse - fetch blocks in reverse * @param {Function} cb - the callback function */ Blockchain.prototype.getBlocks = function (blockId, maxBlocks, skip, reverse, cb) {