3

This seems like a pretty common need, but I haven't found a great solution. Does anyone know of an API to get the details of an ETH transfer from a transaction hash?

For example, this transaction: 0x017834f1951bbaadedf04fe4318a7850ab44bc2ffdb7f1f94320860ac1cf68fd

On etherscan, you get a detailed page of what was transfered (token address and ID), who the buyer was, who the seller was, and the amount paid in exchange.

https://etherscan.io/tx/0x017834f1951bbaadedf04fe4318a7850ab44bc2ffdb7f1f94320860ac1cf68fd

Does anyone know of a service (I'd gladly pay for!) that reliably does this? I have coded up my own solution using web3.py and infura, but I am decoding the logs pretty manually and its a mess.

1 Answer 1

2

Moralis API might help you in your case. It has an API endpoint to get the NFT contract transfers which can provide you with the transfers happened on a smart contract and also an endpoint to get the internal transactions of a transaction which can be helpful to read the internal transactions that happened during an NFT transfer.

There is also an API endpoint to get the NFT trades from the marketplace which gives you decoded data of the NFT transfer with the trade price but it currently only supports the Opensea marketplace.

There are other endpoints too are provided by Moralis that might help you in getting the data related to NFT transactions.

I hope this helps 😃

Disclosure: I work at Moralis

3
  • Thanks! The NFT trade endpoint seems really useful, just wish it supported other marketplaces too (as blur for example is quite popular now). Any plans to add more? Feb 25, 2023 at 19:33
  • They might add in the future depending on the demand. You can suggest it in roadmap.moralis.io
    – JohnVersus
    Feb 26, 2023 at 9:15
  • 1
    IMO I think the answer reply is fine! Feb 27, 2023 at 6:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.