Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions dist/types/providers/http-provider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any>;
/**
* 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<any>;
/**
* Returns transactions hashes included
* in this masterchain block.
Expand Down
20 changes: 20 additions & 0 deletions src/providers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down