我如何从Solana中的交易哈希获得交易的待办事项
我正在尝试获取JS后端中的所有信息,例如从地址,地址,金额等,以确认使用其哈希的交易。从GetTransaction RPC调用返回的交易对象具有所有者帐户publicKeke(从地址)的数组,但找不到找到待办事项的方法。我怎么能找到这个?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要迭代
常规的SOL传输将是系统程序中调用的转移说明。 。
SPL传输将是在令牌程序上调用的转移说明。 I NitialCapoFfering.com订单表格类似,
You need to iterate over the CompiledInstructions (found on TransactionResponse.transaction.message.instructions) and decode them one by one.
Regular SOL transfers would be transfer instructions called on the system program. Web3.js has a helper for that purpose.
SPL Transfers would be transfer instructions called on the token program. I something similar for the initialcapoffering.com order form, this code might be helpful