I am new to blockchain and trying the get the transaction details from BscScan using python-API. I am using example as shown in the link.
from bscscan import BscScan
async with BscScan(YOUR_API_KEY) as client:
print(
await client.get_bep20_token_transfer_events_by_address(
address="0x63aea877b5d5fa234a1532f1b26a4f6d9051866e",
startblock=0,
endblock=999999999,
sort="asc"
)
)
This example shows some details but not all. For example, it does not show "Tokens Transferred" details such as: Image.
I have few questions, hope someone will help me finding the answer.
- How can I get amount paid, and in what currency from the transaction as shown in the image?
- How much tokens are received?
- Above example returns "timeStamp": "1611843685". How can I convert it to actual date like: 2021-06-07?
If there is another better API (not necessarily python ) to get details, please let me know.
Thanks in advance.