Search code examples
node.jsreactjssolananftmetaplex

"Error: failed to post funding tx" on metaplex


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.


Solution

  • 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.