如何解析 Nethereum 中的签名交易?

How to parse a signed transaction in Nethereum?

我使用 TransactionSigner.SignTransaction(...) 进行了一笔交易,并将其存储起来以备将来参考。我如何解析它以获取 public key/source 钱包地址、目标地址、随机数和 Wei 金额?

我尝试在 GitHub 存储库中搜索 Parse 方法,但找到了 none 交易。

您将需要使用 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 or a TransactionChainId https://github.com/Nethereum/Nethereum/blob/master/src/Nethereum.Signer/TransactionChainId.cs

P.S 感谢您在 Nethereum gitter 中引用这个问题。