Exemple #1
0
        public static async Task <Transaction> CreateAsync(KeyPair transactionSourceAccount, Server server)
        {
            var transaction = new Transaction();

            transaction._sourceAccountSeed = transactionSourceAccount.CanSign() ? transactionSourceAccount.SecretSeed : null;
            transaction._account           = await server.Accounts.Account(transactionSourceAccount.AccountId);

            transaction.Builder = new TransactionBuilder(transaction._account);

            return(transaction);
        }