diff --git a/packages/tendermint-rpc/src/client.ts b/packages/tendermint-rpc/src/client.ts index 9bda89ea..b5845a75 100644 --- a/packages/tendermint-rpc/src/client.ts +++ b/packages/tendermint-rpc/src/client.ts @@ -75,7 +75,10 @@ export class Client { } /** - * Get block headers for minHeight <= height <= maxHeight. + * Queries block headers filtered by minHeight <= height <= maxHeight. + * + * @param minHeight The minimum height to be included in the result. Defaults to 0. + * @param maxHeight The maximum height to be included in the result. Defaults to infinity. */ public async blockchain(minHeight?: number, maxHeight?: number): Promise { const query: requests.BlockchainRequest = { diff --git a/packages/tendermint-rpc/types/client.d.ts b/packages/tendermint-rpc/types/client.d.ts index 5844ad64..92606f94 100644 --- a/packages/tendermint-rpc/types/client.d.ts +++ b/packages/tendermint-rpc/types/client.d.ts @@ -16,7 +16,10 @@ export declare class Client { block(height?: number): Promise; blockResults(height?: number): Promise; /** - * Get block headers for minHeight <= height <= maxHeight. + * Queries block headers filtered by minHeight <= height <= maxHeight. + * + * @param minHeight The minimum height to be included in the result. Defaults to 0. + * @param maxHeight The maximum height to be included in the result. Defaults to infinity. */ blockchain(minHeight?: number, maxHeight?: number): Promise; /**