Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

244
Views
How to use the .multi() method?

I finished the substrate kitty tutorial (backend and frontend). Now I would like to build a simple frontend for the RMRK pallet. Now I stuck on the .multi(...) method. Where can I find a documentation about this .multi-method?

      unsub = await api.query.rmrkCore.collections.multi(collectionIds, collections => {
          const collectionsMap = collections.map(collection => parseCollection(collection.unwrap()));
          setCollections(collectionsMap);
      });

The collection.unwrap() returns an error because it is [null,null]

--> However, with the following code I get a nice map<id,collections>

const entries = await api.query.rmrkCore.collections.entries();
const ids = entries.map(entry => entry[0]);
setCollectionIds(ids);

My goal is to parse the collections and store them (setCollections(collectionsMap))

I am grateful about any help :)

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!