I want to get Nft data from metaplex but i wanna know what does .run() work here and why .run() method does not exist here

const nfts = await metaplex.nfts().findAllByOwner({owner: args.publicKey,}).run()

nfts.forEach(nft => { metaplex.nfts() .load({metadata: nft}) .run() .then(loaded => console.log(loaded))

2 Answers 2


run() is only necessary for builders, not for operations. Builders are available for operations that write to the chain, and allow several operations to be combined into a single transaction.



The @metaplex-foundation/js package is also now deprecated in favor of, UMI (Unified Metaplex Interface)

See repo here https://github.com/metaplex-foundation/umi

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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