File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,13 @@ import {QueryParams} from './QueryParams';
3636import { CreateStatementFromDTO } from './receipt/CreateReceiptFromDTO' ;
3737import { CreateTransactionFromDTO , extractBeneficiary } from './transaction/CreateTransactionFromDTO' ;
3838
39+ /**
40+ * Blocks returned limits:
41+ * N_25: 25 blocks.
42+ * N_50: 50 blocks.
43+ * N_75: 75 blocks.
44+ * N_100: 100 blocks.
45+ */
3946export enum LimitType {
4047 N_25 = 25 ,
4148 N_50 = 50 ,
@@ -120,7 +127,7 @@ export class BlockHttp extends Http implements BlockRepository {
120127 /**
121128 * Gets array of BlockInfo for a block height with limit
122129 * @param height - Block height from which will be the first block in the array
123- * @param limit - Number of blocks returned
130+ * @param limit - Number of blocks returned. Limit value only available in 25, 50. 75 and 100. (default 25)
124131 * @returns Observable<BlockInfo[]>
125132 */
126133 public getBlocksByHeightWithLimit ( height : number , limit : LimitType = LimitType . N_25 ) : Observable < BlockInfo [ ] > {
You can’t perform that action at this time.
0 commit comments