英文:
"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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论