Skip to content

Commit

Permalink
Add sort_order param to blockchain method: get_account_transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
VasyaIT authored Jan 4, 2025
1 parent 75b4330 commit 8d97569
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pytonapi/methods/blockchain.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Optional, Dict, Any
from typing import Literal, Optional, Dict, Any

from pytonapi.base import AsyncTonapiClientBase
from pytonapi.schema.blockchain import (
Expand Down Expand Up @@ -188,6 +188,7 @@ async def get_account_transactions(
after_lt: Optional[int] = None,
before_lt: Optional[int] = None,
limit: int = 100,
sort_order: Optional[Literal['asc', 'desc']] = 'desc',
) -> Transactions:
"""
Get account transactions.
Expand All @@ -196,6 +197,7 @@ async def get_account_transactions(
:param after_lt: omit this parameter to get last transactions
:param before_lt: omit this parameter to get last transactions
:param limit: Default value : 100
:param sort_order: Default value : desc
:return: :class:`Transactions`
"""
method = f"v2/blockchain/accounts/{account_id}/transactions"
Expand Down

0 comments on commit 8d97569

Please sign in to comment.