When using Ink to store data in a Mapping with a tuple Key, how do you iterate through all the elements in a tuple?


  • Can you provide an example?
    – Bruno
    Sep 6 at 19:35
  • yes. as in the erc721 example. operator_approvals: Mapping<(AccountId, AccountId), ()> Sep 6 at 21:24
  • so for each account there are many operators accounts. how to iterate through the operators for each main account. Sep 6 at 21:36

1 Answer 1


As per this issue, right now it can't possible to iterate over storage.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.