@@ -79,15 +79,18 @@ async def get_raw_state(self, block_id: str) -> RawBlockState:
7979
8080 return RawBlockState (** response )
8181
82- async def get_raw_header (self , block_id : str ) -> RawBlockHeader :
82+ async def get_raw_header (self , block_id : str , mode : int ) -> RawBlockHeader :
8383 """
8484 Get raw blockchain block header.
8585
8686 :param block_id: block ID: (workchain,shard,seqno,root_hash,file_hash)
87+ :param mode: mode
8788 :return: :class:`RawBlockHeader`
8889 """
90+
8991 method = f"v2/liteserver/get_block_header/{ block_id } "
90- response = await self ._get (method = method )
92+ params = {"mode" : mode }
93+ response = await self ._get (method = method , params = params )
9194
9295 return RawBlockHeader (** response )
9396
@@ -195,34 +198,36 @@ async def get_raw_list_block_transaction(
195198 :param lt: lt
196199 :return: :class:`RawListBlockTransactions`
197200 """
198- method = f"v2/liteserver/get_block_transactions /{ block_id } "
201+ method = f"v2/liteserver/list_block_transactions /{ block_id } "
199202 params = {
200203 "mode" : mode ,
201- "count" : count ,
202- "account_id" : account_id ,
203- "lt" : lt
204+ "count" : count
204205 }
206+ if account_id :
207+ params ["account_id" ] = account_id
208+ if lt :
209+ params ["lt" ] = lt
205210 response = await self ._get (method = method , params = params )
206211
207212 return RawListBlockTransactions (** response )
208213
209214 async def get_block_proof (
210215 self ,
211- know_block : str ,
216+ known_block : str ,
212217 mode : int = 0 ,
213218 target_block : Optional [str ] = None ,
214219 ) -> RawBlockProof :
215220 """
216221 Get raw block proof.
217222
218- :param know_block : know block: (workchain,shard,seqno,root_hash,file_hash)
223+ :param known_block : know block: (workchain,shard,seqno,root_hash,file_hash)
219224 :param mode: mode 0
220225 :param target_block: target block: (workchain,shard,seqno,root_hash,file_hash)
221226 :return: :class:`RawBlockProof`
222227 """
223- method = f"v2/liteserver/get_block_proof/ { know_block } "
228+ method = f"v2/liteserver/get_block_proof"
224229 params = {
225- "know_block " : know_block ,
230+ "known_block " : known_block ,
226231 "mode" : mode ,
227232 }
228233 if target_block :
@@ -267,7 +272,7 @@ async def get_out_msg_queue_size(self) -> OutMsgQueueSize:
267272
268273 :return: :class:`OutMsgQueueSize` size
269274 """
270- method = "v2/liteserver/get_out_msg_queue_size "
275+ method = "v2/liteserver/get_out_msg_queue_sizes "
271276 response = await self ._get (method = method )
272277
273278 return OutMsgQueueSize (** response )
0 commit comments