0

Some rpc calls using metaplex SDK metaplex.nft.findByMint seem to get stuck, is it possible to specify to solana/web3 or metaplex SDK the timeout by default?

EDIT: I finally could set timeout by sending abortController directly ass a paramater

1 Answer 1

1

yes do something like:

import * as https from "https"

const agent = new https.agent({keepAlive: true, timeout: 99999})     
const connection = new Connection("your rpc", {httpAgent: agent})

and finally initialize metaplex using this:

metaplex.make(connection)

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.