Exemple #1
0
        private static async Task <WalletBuildTransactionModel> BuildTransactionAsync(string[] args)
        {
            var walletService = new WalletService();
            var transaction   = await walletService.BuildTransactionAsync(new BuildTransactionRequest
            {
                AccountName        = "account 0",
                Amount             = "1",
                AllowUnconfirmed   = true,
                DestinationAddress = "TLX2UxwiqoANX34f91Y3CCRD8atySdBsBL",
                FeeAmount          = "0.005",
                FeeType            = "low",
                Password           = "******",
                WalletName         = "redstone1",
                ShuffleOutputs     = true,
            });

            Console.WriteLine($"Here is your hex: {transaction.Hex}");
            return(transaction);
        }