Files
trc20wrapper/tests/transactions.py
2025-07-10 21:22:22 +03:00

18 lines
451 B
Python

import pytest
from trc20wrapper.transactions import get_transactions
HASH_ = "36ad0f7e042b6d95b22e3226cee5e61101712cc3d519ac5623da1ab3c42d49a9"
ADDR = "TEqCBKLNfJsrYaiYXnSVDDx7QvhyWnH9gj"
# @pytest.mark.asyncio
# async def test_get_transaction_by_hash():
# print(await get_transaction_by_hash(ADDR, HASH_))
@pytest.mark.asyncio
async def test_get_transactions():
for tx in await get_transactions(ADDR):
print(tx.amount, tx.time)