3

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.

Alchemist
  • 325
  • 1
  • 17

2 Answers2

1

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.

CK Chan
  • 39
  • 1
0

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.

Alchemist
  • 325
  • 1
  • 17