diff --git a/dist/types/providers/http-provider.d.ts b/dist/types/providers/http-provider.d.ts index 9d673040..d17c7e04 100644 --- a/dist/types/providers/http-provider.d.ts +++ b/dist/types/providers/http-provider.d.ts @@ -158,6 +158,12 @@ export declare class HttpProvider { * {@link https://toncenter.com/api/v2/#/blocks/get_block_transactions_getBlockTransactions_get} */ getBlockTransactions(workchain: number, shardId: string, shardBlockNumber: number, limit?: number, afterLt?: number | string, addressHash?: string): Promise; + /** + * Returns transactions included in this block. + * + * {@link https://toncenter.com/api/v2/#/blocks/get_block_transactions_getBlockTransactionsExt_get} + */ + getBlockTransactionsExt(workchain: number, shardId: string, shardBlockNumber: number, limit?: number, afterLt?: number | string, addressHash?: string): Promise; /** * Returns transactions hashes included * in this masterchain block. diff --git a/src/providers/index.js b/src/providers/index.js index d8a6c27a..cdca5eb7 100644 --- a/src/providers/index.js +++ b/src/providers/index.js @@ -207,6 +207,26 @@ class HttpProvider { }); } + /** + * Returns transactions included in this block + * @param workchain {number} + * @param shardId {string} + * @param shardBlockNumber {number} + * @param limit? {number} + * @param afterLt? {number} pivot transaction LT to start with + * @param addressHash? {string} take the account address where the pivot transaction took place, convert it to raw format and take the part of the address without the workchain (address hash) + */ + async getBlockTransactionsExt(workchain, shardId, shardBlockNumber, limit, afterLt, addressHash) { + return this.send('getBlockTransactionsExt', { + workchain: workchain, + shard: shardId, + seqno: shardBlockNumber, + count: limit, + after_lt: afterLt, + after_hash: addressHash + }); + } + /** * Returns transactions hashes included in this masterhcain block * @param masterchainBlockNumber {number}