public TransactionEntity(AccountIdentifier account, long value)
 {
     this._value = value;
     this.publicKey = account.PublicKey;
     this.name = account.Name;
     this.address = account.AddressData.AddressString;
 }
        public SingleTransactionFactory(AccountIdentifier source, AccountIdentifier destination, long transactionFee, long destValue)
        {
            this.source = source;
            this.destination = destination;
            this.destValue = destValue;
            this.transactionFee = transactionFee;

            TransactionEntity teSrc = new TransactionEntity(this.source, destValue + transactionFee);
            TransactionEntity teDst = new TransactionEntity(this.destination, destValue);

            long Time = DateTime.UtcNow.ToFileTimeUtc();

            TC = new TransactionContent(new TransactionEntity[] { teSrc }, new TransactionEntity[] { teDst }, transactionFee, Time);

            tranxData = TC.GetTransactionData();
        }
Beispiel #3
0
 public JS_Address(AccountIdentifier AccountIdentifier, byte[] Secret)
 {
     this.AccountIdentifier = AccountIdentifier;
     this.Secret = Secret;
 }