metaplex-foundation / js

A JavaScript SDK for interacting with Metaplex's programs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

VijiHithub opened this issue · comments

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 !!!