首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Nethereum中解析签名的事务?

如何在Nethereum中解析签名的事务?
EN

Stack Overflow用户
提问于 2019-12-07 05:05:40
回答 1查看 742关注 0票数 1

我使用TransactionSigner.SignTransaction(...)进行了一个事务处理,并将其存储以供以后参考。我如何解析它,以获得公钥/源钱包地址,目的地地址,现在,和金额的魏?

我尝试在GitHub回购中搜索Parse方法,但没有发现任何事务。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-12-24 10:38:04

您将需要使用Nethereum.Signer.TransactionFactory,https://github.com/Nethereum/Nethereum/blob/master/src/Nethereum.Signer/TransactionFactory.cs

TransactionFactory基于RLP检查事务的签名方式(使用ChainId或默认ChainId)。

根据签名方式的不同,您将返回一个事务https://github.com/Nethereum/Nethereum/blob/master/src/Nethereum.Signer/Transaction.cs或一个TransactionChainId https://github.com/Nethereum/Nethereum/blob/master/src/Nethereum.Signer/TransactionChainId.cs

谢谢你引用了这个问题。

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59223177

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档