Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Took More Time To Complete The NFT Cretae ( Mint ) Process #550

Open
VijiHithub opened this issue Apr 24, 2024 · 0 comments
Open

Took More Time To Complete The NFT Cretae ( Mint ) Process #550

VijiHithub opened this issue Apr 24, 2024 · 0 comments

Comments

@VijiHithub
Copy link

Greetings Team,

Hope you're doing well!

We have been encountering timeout problems on mainnet-beta while creating ( Mint ) an NFT using the SDK (metaplex-foundation/js) for the past week. Despite our efforts, we continue to face the same issue.

I am also sharing our code with you for review. Could you please provide an urgent solution?

Code : -

const {
Metaplex,
keypairIdentity,
bundlrStorage,
} = require("@metaplex-foundation/js");

const {
Connection,
clusterApiUrl,
Keypair,
PublicKey,
} = require("@solana/web3.js");

const token = require("@solana/spl-token");
const {
transfer,
getAccount,
} = require("@solana/spl-token");

const bs58 = require("bs58");

const metaplex1 = Metaplex.make(connection)
.use(keypairIdentity(wallet1))
.use(
bundlrStorage({
address: METAPLEX_BUNDLER_ADDRESS,
providerUrl: METAPLEX_BUNDLER_PROVIDER,
timeout: 60000,
})
);

const { uri } = await metaplex1.nfts().uploadMetadata(metadata);

    const { nft } = await metaplex1.nfts().create(
        {
            uri,
            name: "Sample #120",
            sellerFeeBasisPoints: 100, // Represents 1.00%.
        },
        { commitment: "finalized" }
    );

    const nftMintAddress = nft.mint.address;

Packages Versions :-

"@metaplex-foundation/js": "^0.18.3",
"@solana/spl-token": "^0.4.1",
"@solana/web3.js": "^1.90.1",

Thanks in advance !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant