1

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

1

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.

See:

0

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 that you have read and understand our privacy policy and code of conduct.

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