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

102
Views
Resolve an array of Promises - JavaScript

I'm making this asynchronous call to get data from a server.

const NFTMetaHashes = tokenIds.map(async (id: any) => {
    const NFTHash = await contract.nftEngine.methods.tokenURI(id).call();
    console.log('hash', NFTHash);
    return NFTHash;      
});
console.log('hashes', NFTMetaHashes);

When i log NFTHash it gives me the desired string value. But the NFTMetaHashes gives me this output -

hashes (12) [Promise, Promise, Promise, Promise, Promise, Promise, Promise, Promise, Promise, Promise, Promise, Promise]

How do I resolve this Promise to get an array of NFTHash?

about 4 years ago · Santiago Gelvez
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!