0

I have had success to get the datetime when NFT minted, but now I want to try to get the latest time when this NFT was purchased.

to get minted NFT I use this code :

const fetchGetNftMintDate = async (connection: Connection, pubkey: PublicKey) => {
  const txList  = await connection.getSignaturesForAddress(pubkey)
  const unixTime = txList[txList.length-1].blockTime
  const oldestTxTimestamp = dayjs.unix(unixTime)
  return oldestTxTimestamp
}

now, how to get the latest datetime when NFT was purchased?

1
  • what do you mean by "latest datetime"?
    – Yilmaz
    Commented Mar 6, 2023 at 2:34

1 Answer 1

1

Consider Helius's NFT sale transaction api endpoint.

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.