ton-http-api 2.0.41__tar.gz → 2.0.45__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ton-http-api-2.0.41 → ton-http-api-2.0.45}/PKG-INFO +1 -1
- {ton-http-api-2.0.41 → ton-http-api-2.0.45}/pyTON/main.py +18 -0
- {ton-http-api-2.0.41 → ton-http-api-2.0.45}/pyTON/manager.py +3 -0
- {ton-http-api-2.0.41 → ton-http-api-2.0.45}/ton_http_api.egg-info/PKG-INFO +1 -1
- {ton-http-api-2.0.41 → ton-http-api-2.0.45}/README.md +0 -0
- {ton-http-api-2.0.41 → ton-http-api-2.0.45}/pyTON/__init__.py +0 -0
- {ton-http-api-2.0.41 → ton-http-api-2.0.45}/pyTON/__main__.py +0 -0
- {ton-http-api-2.0.41 → ton-http-api-2.0.45}/pyTON/cache.py +0 -0
- {ton-http-api-2.0.41 → ton-http-api-2.0.45}/pyTON/models.py +0 -0
- {ton-http-api-2.0.41 → ton-http-api-2.0.45}/pyTON/settings.py +0 -0
- {ton-http-api-2.0.41 → ton-http-api-2.0.45}/pyTON/worker.py +0 -0
- {ton-http-api-2.0.41 → ton-http-api-2.0.45}/setup.cfg +0 -0
- {ton-http-api-2.0.41 → ton-http-api-2.0.45}/setup.py +0 -0
- {ton-http-api-2.0.41 → ton-http-api-2.0.45}/ton_http_api.egg-info/SOURCES.txt +0 -0
- {ton-http-api-2.0.41 → ton-http-api-2.0.45}/ton_http_api.egg-info/dependency_links.txt +0 -0
- {ton-http-api-2.0.41 → ton-http-api-2.0.45}/ton_http_api.egg-info/entry_points.txt +0 -0
- {ton-http-api-2.0.41 → ton-http-api-2.0.45}/ton_http_api.egg-info/requires.txt +0 -0
- {ton-http-api-2.0.41 → ton-http-api-2.0.45}/ton_http_api.egg-info/top_level.txt +0 -0
- {ton-http-api-2.0.41 → ton-http-api-2.0.45}/ton_http_api.egg-info/zip-safe +0 -0
@@ -448,6 +448,24 @@ async def get_block_transactions(
|
|
448
448
|
"""
|
449
449
|
return await tonlib.getBlockTransactions(workchain, shard, seqno, count, root_hash, file_hash, after_lt, after_hash)
|
450
450
|
|
451
|
+
@app.get('/getBlockTransactionsExt', response_model=TonResponse, response_model_exclude_none=True, tags=['blocks','transactions'])
|
452
|
+
@json_rpc('getBlockTransactionsExt')
|
453
|
+
@wrap_result
|
454
|
+
async def get_block_transactions_ext(
|
455
|
+
workchain: int,
|
456
|
+
shard: int,
|
457
|
+
seqno: int,
|
458
|
+
root_hash: Optional[str] = None,
|
459
|
+
file_hash: Optional[str] = None,
|
460
|
+
after_lt: Optional[int] = None,
|
461
|
+
after_hash: Optional[str] = None,
|
462
|
+
count: int = 40
|
463
|
+
):
|
464
|
+
"""
|
465
|
+
Get transactions of the given block.
|
466
|
+
"""
|
467
|
+
return await tonlib.getBlockTransactionsExt(workchain, shard, seqno, count, root_hash, file_hash, after_lt, after_hash)
|
468
|
+
|
451
469
|
@app.get('/getBlockHeader', response_model=TonResponse, response_model_exclude_none=True, tags=['blocks'])
|
452
470
|
@json_rpc('getBlockHeader')
|
453
471
|
@wrap_result
|
@@ -408,6 +408,9 @@ class TonlibManager:
|
|
408
408
|
async def getBlockTransactions(self, workchain, shard, seqno, count, root_hash=None, file_hash=None, after_lt=None, after_hash=None):
|
409
409
|
return await self.dispatch_archival_request('get_block_transactions', workchain, shard, seqno, count, root_hash, file_hash, after_lt, after_hash)
|
410
410
|
|
411
|
+
async def getBlockTransactionsExt(self, workchain, shard, seqno, count, root_hash=None, file_hash=None, after_lt=None, after_hash=None):
|
412
|
+
return await self.dispatch_archival_request('get_block_transactions_ext', workchain, shard, seqno, count, root_hash, file_hash, after_lt, after_hash)
|
413
|
+
|
411
414
|
async def getBlockHeader(self, workchain, shard, seqno, root_hash=None, file_hash=None):
|
412
415
|
method = 'get_block_header'
|
413
416
|
if workchain == -1 and seqno and self.consensus_block.seqno - seqno < 2000:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|