Class: TransactionIterator

TransactionIterator

An iterator that allows scripts to iterate over a potentially large collection of transactions.

new TransactionIterator()

See:

Methods

getContinuationToken() → {string}

Gets a token that can be used to resume this iteration at a later time.

This method is useful if processing an iterator in one execution would exceed the maximum execution time. Continuation tokens are generally valid short period of time.
Returns:
a continuation token that can be used to resume this iteration with the items that remained in the iterator when the token was generated
Type
string

hasNext() → {boolean}

Determines whether calling next() will return a transaction.
Returns:
true if next() will return an item; false if not
Type
boolean

next() → {Transaction}

Gets the next transaction in the collection of transactions.
Returns:
the next transaction in the collection
Type
Transaction