Closed
Description
Issue To Be Solved
A way to iterate over the storage to be able to list the resources owned by an account.
(Optional): Suggest A Solution
- using a Cadence script:
for entry in account.storageEntries { log(entry) }
- using RPC:
getAccount(“0x01")
The response result can have astorage
field with data in the cadence format (json with types)
- Details of the technical implementation
- Tradeoffs made in design decisions
- Caveats and considerations for the future
If there are multiple solutions, please present each one separately. Save comparisons for the very end.)
(Optional): Context
I’m working on a marketplace and I was looking for a way to list all NFTs owned by an account.