Uncaught (in promise) WalletSignTransactionError: Transaction recentBlockhash required
at PhantomWalletAdapter.signTransaction (adapter.ts:215:1)
at async WalletProvider.tsx:247:1
at async mintNFT (luckoo.tsx:100:1)
Run Code Online (Sandbox Code Playgroud)
当我尝试使用 solana 钱包发送交易时收到此消息,我该怎么办?
在 Solana 中发送多个相关交易的最佳实践是什么?假设我想发送 2 笔交易,每笔交易都是相关的。
如果第二个失败,那么我必须要求用户发送第一笔和第二笔交易。但实际上我可以实现这样当第二个 trx 失败时,它只会要求用户重试第二个。
有人可以在这件事上为我指出正确的方向吗?
谢谢