diff --git a/duniterpy/api/bma/tx.py b/duniterpy/api/bma/tx.py index 9e17d49b6df5540e8f303ff7c2bb8dcd9a94d5b2..ba608f0d5cd26c21debad7465bb628f8f4e26f5c 100644 --- a/duniterpy/api/bma/tx.py +++ b/duniterpy/api/bma/tx.py @@ -211,6 +211,17 @@ async def history(client: Client, pubkey: str) -> dict: return await client.get(MODULE + '/history/%s' % pubkey, schema=HISTORY_SCHEMA) +async def history_pending(client: Client, pubkey: str) -> dict: + """ + Get pending transactions history of public key + + :param client: Client to connect to the api + :param pubkey: Public key + :return: + """ + return await client.get(MODULE + '/history/%s/pending' % pubkey, schema=HISTORY_SCHEMA) + + async def process(client: Client, transaction_signed_raw: str) -> ClientResponse: """ POST a transaction raw document