Ejemplo n.º 1
0
        public async Task <TransactionCreatedReply> DeleteAlias(AliasLocator query,
                                                                CreateTransactionParameters parameters)
        {
            var queryParameters = query.QueryParameters;

            parameters.AppendToQueryParameters(queryParameters);
            return(await Post <TransactionCreatedReply>("deleteAlias", queryParameters));
        }
Ejemplo n.º 2
0
        public async Task <AliasReply> GetAlias(AliasLocator query, ulong?requireBlock = null,
                                                ulong?requireLastBlock = null)
        {
            var queryParameters = query.QueryParameters;

            queryParameters.AddIfHasValue(Parameters.RequireBlock, requireBlock);
            queryParameters.AddIfHasValue(Parameters.RequireLastBlock, requireLastBlock);
            return(await Get <AliasReply>("getAlias", queryParameters));
        }
Ejemplo n.º 3
0
        public async Task <TransactionCreatedReply> BuyAlias(AliasLocator query, Amount amount,
                                                             CreateTransactionParameters parameters)
        {
            var queryParameters = query.QueryParameters;

            parameters.AppendToQueryParameters(queryParameters);
            queryParameters.Add(Parameters.AmountNqt, amount.Nqt.ToString());
            return(await Post <TransactionCreatedReply>("buyAlias", queryParameters));
        }
Ejemplo n.º 4
0
        public async Task <TransactionCreatedReply> SellAlias(AliasLocator query, Amount price,
                                                              CreateTransactionParameters parameters, Account recipient = null)
        {
            var queryParameters = query.QueryParameters;

            parameters.AppendToQueryParameters(queryParameters);
            queryParameters.Add(Parameters.PriceNqt, price.Nqt.ToString());
            queryParameters.AddIfHasValue(Parameters.Recipient, recipient);
            return(await Post <TransactionCreatedReply>("sellAlias", queryParameters));
        }