Skip to content

Storage Querying API #208

Closed
Closed
@cybercent

Description

@cybercent

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 a storage 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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions