2

So right now I'm calling getSignatures and getting blocktime of the earliest one I get returned. Is there a more efficient way of doing this?

2
  • I could be wrong but unless you stored the creation time in the account data, there is no accurate way of getting the account age from the chain itself.
    – sohrab
    Sep 4, 2022 at 12:19
  • Yea I think youre right thats why Im doing it this way to get a rough estimation. I guess Ill keep doing it this way as I dont need it to be that accurate its for ui purposes only. This is for some nfts so Ive added timestamp field on offchain data.
    – Noe Trejo
    Sep 5, 2022 at 4:25

0

Your Answer

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