“Error: failed to post funding tx” 在 Metaplex 上的翻译。

huangapple go评论94阅读模式
英文:

"Error: failed to post funding tx" on metaplex

问题

我正在尝试将 Solana NFT 元数据上传到 arweave.net。
我尝试了以下代码。

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

但是出现了以下错误。

错误:无法提交资金交易 -
4tSgRoDyCwaT9DwK8GsnMTPeYfPZCwi4W3tpiTeei1H7WBZ9LEbbPthRaLBLXzGqLVoQQmwqmXpZd7ciKwHH3gCw
(请保留此 ID!) - 找不到资金交易

我尝试了几次,但都没有成功。

请帮助我。

英文:

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.

答案1

得分: 1

我以前也遇到过相同的问题。我的问题是我一直在使用Solana Devnet。但是使用以下代码来配置bundlrStorage。

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

然而,根据Metaplex的文档,默认设置是用于主网连接。因此,我将这部分修改如下:

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

希望对你有所帮助。

英文:

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.

答案2

得分: 0

我最终通过在metaplex中添加nftStorage来解决了这个问题。

这是修改后的代码:

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

这样可以消除错误。

英文:

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.

huangapple
  • 本文由 发表于 2023年1月10日 08:29:35
  • 转载请务必保留本文链接:https://go.coder-hub.com/75064290.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定