node: pass options from getTXByAddress to getMetaByAddress
This commit is contained in:
parent
34e8f22b9b
commit
7e9d00a665
@ -556,11 +556,15 @@ class FullNode extends Node {
|
|||||||
* Retrieve transactions pertaining to an
|
* Retrieve transactions pertaining to an
|
||||||
* address from the mempool or chain database.
|
* address from the mempool or chain database.
|
||||||
* @param {Address} addr
|
* @param {Address} addr
|
||||||
|
* @param {Object} options
|
||||||
|
* @param {Number} options.limit
|
||||||
|
* @param {Number} options.reverse
|
||||||
|
* @param {Buffer} options.after
|
||||||
* @returns {Promise} - Returns {@link TX}[].
|
* @returns {Promise} - Returns {@link TX}[].
|
||||||
*/
|
*/
|
||||||
|
|
||||||
async getTXByAddress(addr) {
|
async getTXByAddress(addr, options = {}) {
|
||||||
const mtxs = await this.getMetaByAddress(addr);
|
const mtxs = await this.getMetaByAddress(addr, options);
|
||||||
const out = [];
|
const out = [];
|
||||||
|
|
||||||
for (const mtx of mtxs)
|
for (const mtx of mtxs)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user