private static byte[] SignTransaction(KeyPair key, SignedTransaction txInput) { txInput.Sign(key); return(txInput.Serialize()); }