Esempio n. 1
0
        public byte[] Bytes()
        {
            TxParams        txParams = ToTransactionParam();
            TransactionUtil util     = new TransactionUtil();

            byte[] bytes = util.EncodeTransactionProto(txParams);
            return(bytes);
        }
Esempio n. 2
0
 public static Transaction BuildTransaction(TxParams param, HttpProvider provider, TxStatus status)
 {
     return(new Transaction()
     {
         ID = param.ID,
         Version = param.Version,
         Nonce = param.Nonce,
         Amount = param.Amount,
         GasPrice = param.GasPrice,
         GasLimit = param.GasLimit,
         Signature = param.Signature,
         Receipt = param.Receipt,
         SenderPubKey = param.SenderPubKey,
         ToAddr = param.ToAddr,
         Code = param.Code,
         Data = param.Data,
         Provider = provider,
         Status = status,
     });
 }