-2

I am trying to retrieve info about bsc transations using Bscscan api but it appears to be very limited.

endpoint = "https://api.bscscan.com/api"\
   "?module=account"\
   "&action=txlistinternal"\
   "&txhash={}"\
   "&apikey={}"

After sending a GET request, this is what i get:

{'status': '1', 'message': 'OK', 'result': [{'blockNumber': '19952739', 'timeStamp': '1659033895', 'from': '0x0000000000000000000000000000000000001000', 'to': '0x000000000000000000000000000000000000dead', 'value': '7802270354745452', 'contractAddress': '', 'input': '', 'type': 'call', 'gas': '2300', 'gasUsed': '0', 'isError': '0', 'errCode': ''}]}

however, on bscscan there is so much more information and already decoded, so is there a way to retrieve information as shown as bscscan?

maic0L
  • 45
  • 8

1 Answers1

0

https://api.bscscan.com/api?module=account&action=txlist&address=YOUR_ADDRESS&startblock=0&endblock=99999999&page=0&offset=1&sort=asc&apikey=API_KEY

In the url above, replace YOUR_ADDRESS with your bsc address example 0xaE........ Replace API_KEY with your api key. Then copy and paste the url in your web browser. You will get the list of all transactions on that address

  • 1
    As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Aug 08 '22 at 03:06