有什么更好的方法来处理“等待交易确认超时”? Metaplex CMv2 上出现错误?
标题说明了一切。最近,我经常遇到错误:等待交易确认超时
。无论是在 devnet 中还是在 mainnet-beta 中,
都尝试了各种不同的自定义 --rpc,但大多数时候它并没有无论互联网速度如何,钱包中有足够的 SOL,甚至只铸造 1 个 NFT,都无济于事……
我想不出任何可能的场景可以重现/改善此错误。
非常感谢任何想法/建议
the title speaks it all. Lately, I am facing Error: Timed out awaiting confirmation on transaction
too often. Be it in a devnet or in a mainnet-beta
tried out various different custom --rpc's but most of the time it just doesn't help regardless of the internet speed, enough SOLs in a wallet and even minting only 1 NFT...
I can't think of any possible scenario which could reproduce/improve this error.
Any ideas/suggestions much appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果网络陷入困境或出现问题,交易可能无法完成,这是可以预料的。如果在区块哈希过期时交易尚未得到确认,建议重试交易。
需要考虑的几个选项:
Connection
对象时自定义ConnectionConfig
中的confirmTransactionInitialTimeout
。 您可以将其提高到更高的数字,以便等待更长的时间sendTransaction
从confirmTransaction
返回错误, 重试。这将获取新的区块哈希,再次签署交易,然后再次发送有关重试交易的更多信息,请访问 https://solanacookbook.com/guides/retrying-transactions.html
您可以通过查看底部的“Solana Ping Stats”来查看有关已确认交易的信息资源管理器:https://explorer.solana.com/?cluster=devnet
您将看到部分交易未得到确认。
If the network is bogged down or has issues, transactions may not go through, and that's to be expected. It's recommended to retry transactions if they haven't been confirmed by the time the blockhash expires.
A few options to consider:
confirmTransactionInitialTimeout
inConnectionConfig
when creating yourConnection
object. You can bump this up to a higher number to wait longerconfirmTransaction
by callingsendTransaction
once again. This will fetch a new blockhash, sign the transaction again, and send it againMore information about retrying transactions at https://solanacookbook.com/guides/retrying-transactions.html
You can see information about confirmed transactions by looking at the "Solana Ping Stats" at the bottom of the Explorer: https://explorer.solana.com/?cluster=devnet
You'll see that some proportion of transactions aren't confirmed.