public async Task <TransactionCreatedReply> DeleteAlias(AliasLocator query, CreateTransactionParameters parameters) { var queryParameters = query.QueryParameters; parameters.AppendToQueryParameters(queryParameters); return(await Post <TransactionCreatedReply>("deleteAlias", queryParameters)); }
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)); }
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)); }
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)); }