"Error: failed to post funding tx" on metaplex

464 Views Asked by At

I am trying to upload solana NFT metadata to arweave.net. I tried below code.

      await METAPLEX
        .nfts()
        .update({
            name: newName,
            nftOrSft: nft,
            uri: metadataUri
        }, { commitment: 'finalized' });

And this is error.

Error: failed to post funding tx - 4tSgRoDyCwaT9DwK8GsnMTPeYfPZCwi4W3tpiTeei1H7WBZ9LEbbPthRaLBLXzGqLVoQQmwqmXpZd7ciKwHH3gCw (keep this id!) - Fund Tx Not Found

I tried several but all not working.

Please help me.

2

There are 2 best solutions below

3
On BEST ANSWER

I finally fix that issue by adding nftStorage in metaplex

Here is modified code

const METAPLEX = Metaplex.make(connection)
.use(keypairIdentity(wallet))
.use(bundlrStorage({
    address: 'https://devnet.bundlr.network',
    providerUrl: rpcUrl,
    timeout: 60000,
}))
.use(nftStorage());

This removes the errors.

0
On

I experience the same problem before. My problem was I have been using Solana Devnet. But use below code for bundlrStorage.

const metaplex = Metaplex.make(connection)
.use(keypairIdentity(wallet))
.use(bundlrStorage());

However, according Metaplex's doc, the default setting is for mainnet connection. Thus, I amend this part to below:

const METAPLEX = Metaplex.make(connection)
.use(keypairIdentity(wallet))
.use(bundlrStorage({
    address: 'https://devnet.bundlr.network',
    providerUrl: rpcUrl,
    timeout: 60000,
}));

Hope it helps.