public void RawTransactionIsConformsToRPC() { using (NodeBuilder builder = NodeBuilder.Create(this)) { CoreNode node = builder.CreateBitcoinCoreNode(version: BitcoinCoreVersion15).Start(); RPCClient rpcClient = node.CreateRPCClient(); Transaction tx = this.testNet.GetGenesis().Transactions[0]; Transaction tx2 = rpcClient.DecodeRawTransaction(tx.ToBytes()); Assert.True(JToken.DeepEquals(tx.ToString(this.testNet, RawFormat.Satoshi), tx2.ToString(this.testNet, RawFormat.Satoshi))); } }