因此,我使用TransactionSigner.SignTransaction(...)
进行了交易,并将其存储起来以备将来参考。如何解析回去以获取公钥/源钱包地址,目标地址,随机数以及Wei中的金额?
我尝试在GitHub存储库中搜索Parse
方法,但没有找到用于交易的方法。
答案 0 :(得分:2)
您将需要使用Nethereum.Signer.TransactionFactory,https://github.com/Nethereum/Nethereum/blob/master/src/Nethereum.Signer/TransactionFactory.cs
TransactionFactory基于RLP来检查交易的签名方式(使用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
P.S感谢您在Nethereum gitter中引用此问题。