/nft/{token_address}/{token_id}/transfers
I’m using getWalletTokenIdTransfers()
to get the transaction history of each NFT of single NFT pages in an app but the problem on Polygon is that the value shows MATIC fees and not wrapped ETH that these NFTs are bought with on OpenSea.
It also doesn’t show any info about the type of event for each transaction.
What I’m doing now to solve this is I run getWalletTokenIdTransfers()
and check if the value is more than 0
.
If it is then that means it was purchased and then I have to use Covalent to get the info for the transaction using the tx_hash.
Covalent shows a lot more data for transactions including log events, gas fees and events are decoded so you can see what actual contract events are called like Fill() event
then I can see the "takerAssetFilledAmount"
and wETH value sent.
It would be more convenient to just use Moralis API for everything if some of this extra data was included in responses.
Try these to see example of data returned:
Covalent example on Polygon - Get NFT transactions for contract:
contract: 0xa5f1ea7df861952863df2e8d1312f7305dabf215
token_id: 158139
Covalent example on Polygon - Get a transaction:
tx_hash: 0x217b89c396d93620738b6060a52e75a38288005c248e64cdbc920ee54b400e74