0

Is it possible to get blocknumber or created timestamp from this query?

await api.query.nfts.item.keys(collectionId)
2
  • There isn't a directly way to do this.
    – aurexav
    Commented Apr 7 at 14:27
  • Do you have any other workaround for getting a block number from the list of NFTs from a specific collection?
    – Rezn
    Commented Apr 8 at 11:45

1 Answer 1

1

There isn't a direct way to do this.

Here are my suggestions:

  1. Monitor an event and check the timestamp of the event's block (if such an event exists).
  2. Monitor an extrinsic and check the timestamp of its block, ensuring that the extrinsic was successful and modified the storage.

These methods are quite unstable, so I'm not certain they will work as expected in your situation.

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.