0

Thanks for taking the time to read my question!

I've previously built projects utilising the likes of coingecko, bscscan API etc... Which were perfect for the intended use-case, however now starting a new project I'm requiring informatiom which is proving problematic to obtain.

I'm trying to find a way to query a token address and obtain transaction information, such as how much BNB was spent in the transaction, and how many tokens were received in return. With the tokens I'm trying to do this with, the majority of purchases are < 1BNB and as a result, BSCScan api returns 0 in the value key:value pair, as well as not providing the token quantities received. While it would be nice to have access to token amounts received, it isn't absolutely necessary as I could produce this providing I had access to the amount spent on the transaction.

Outside of the commonly known APIs, is there a way to obtain this information? I apologise if this is an obvious question, but with how transparent blockchain explorers are, I'm struggling to believe that there isn't some way to obtain this information, and struggling even further to figure out how to gain access to it.

lariz
  • 15
  • 1
  • 6

0 Answers0