Skip to content

Commit 5897068

Browse files
Fixed query params
1 parent ab4ad93 commit 5897068

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ton-http-api/pyTON/main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ async def get_worker_state():
246246
@wrap_result
247247
async def get_address_information(
248248
address: str = Query(..., description="Identifier of target TON account in any form."),
249-
seqno: Optional[int] = Body(None, description="Seqno of masterchain block at which moment the address information should be loaded")
249+
seqno: Optional[int] = Query(None, description="Seqno of masterchain block at which moment the address information should be loaded")
250250
):
251251
"""
252252
Get basic information about the address: balance, code, data, last_transaction_id.
@@ -263,7 +263,7 @@ async def get_address_information(
263263
@wrap_result
264264
async def get_extended_address_information(
265265
address: str = Query(..., description="Identifier of target TON account in any form."),
266-
seqno: Optional[int] = Body(None, description="Seqno of masterchain block at which moment the address information should be loaded")
266+
seqno: Optional[int] = Query(None, description="Seqno of masterchain block at which moment the address information should be loaded")
267267
):
268268
"""
269269
Similar to previous one but tries to parse additional information for known contract types. This method is based on tonlib's function *getAccountState*. For detecting wallets we recommend to use *getWalletInformation*.
@@ -277,7 +277,7 @@ async def get_extended_address_information(
277277
@wrap_result
278278
async def get_wallet_information(
279279
address: str = Query(..., description="Identifier of target TON account in any form."),
280-
seqno: Optional[int] = Body(None, description="Seqno of masterchain block at which moment the address information should be loaded")
280+
seqno: Optional[int] = Query(None, description="Seqno of masterchain block at which moment the address information should be loaded")
281281
):
282282
"""
283283
Retrieve wallet information. This method parses contract state and currently supports more wallet types than getExtendedAddressInformation: simple wallet, standart wallet, v3 wallet, v4 wallet.
@@ -320,7 +320,7 @@ async def get_transactions(
320320
@wrap_result
321321
async def get_address_balance(
322322
address: str = Query(..., description="Identifier of target TON account in any form."),
323-
seqno: Optional[int] = Body(None, description="Seqno of masterchain block at which moment the address information should be loaded")
323+
seqno: Optional[int] = Query(None, description="Seqno of masterchain block at which moment the address information should be loaded")
324324
):
325325
"""
326326
Get balance (in nanotons) of a given address.
@@ -336,7 +336,7 @@ async def get_address_balance(
336336
@wrap_result
337337
async def get_address(
338338
address: str = Query(..., description="Identifier of target TON account in any form."),
339-
seqno: Optional[int] = Body(None, description="Seqno of masterchain block at which moment the address information should be loaded")
339+
seqno: Optional[int] = Query(None, description="Seqno of masterchain block at which moment the address information should be loaded")
340340
):
341341
"""
342342
Get state of a given address. State can be either *unitialized*, *active* or *frozen*.

0 commit comments

Comments
 (0)