我使用TransactionSigner.SignTransaction(...)进行了一个事务处理,并将其存储以供以后参考。我如何解析它,以获得公钥/源钱包地址,目的地地址,现在,和金额的魏?
我尝试在GitHub回购中搜索Parse方法,但没有发现任何事务。
发布于 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
谢谢你引用了这个问题。
https://stackoverflow.com/questions/59223177
复制相似问题