【问题标题】:"Error: failed to post funding tx" on metaplex\“错误:未能在 metaplex 上发布资金 tx\”
【发布时间】:2023-02-19 16:38:27
【问题描述】:

我正在尝试将 solana NFT 元数据上传到 arweave.net。 我试过下面的代码。

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

这是错误。

错误:无法发布资金 tx - 4tSgRoDyCwaT9DwK8GsnMTPeYfPZCwi4W3tpiTeei1H7WBZ9LEbbPthRaLBLXzGqLVoQQmwqmXpZd7ciKwHH3gCw (保留此 ID!)- 未找到资金 Tx

我尝试了几个但都没有用。

请帮我。

【问题讨论】:

    标签: node.js reactjs solana nft metaplex


    【解决方案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,
    }));
    

    希望能帮助到你。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-12-14
      • 2020-12-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-07
      相关资源
      最近更新 更多