public NeoApiTransactionService(IClient client) : base(client) { GetRawTransaction = new NeoGetRawTransaction(client); SendRawTransaction = new NeoSendRawTransaction(client); GetTransactionOutput = new NeoGetTransactionOutput(client); SendAssets = new NeoSendAssets(client); }
public NeoApiTransactionService(IClient client) : base(client) { GetApplicationLog = new NeoGetApplicationLog(client); GetRawTransaction = new NeoGetRawTransaction(client); GetRawTransactionSerialized = new NeoGetRawTransactionSerialized(client); SendRawTransaction = new NeoSendRawTransaction(client); GetTransactionOutput = new NeoGetTransactionOutput(client); SendToAddress = new NeoSendToAddress(client); SendMany = new NeoSendMany(client); SendFrom = new NeoSendFrom(client); }
public async Task <Transaction> GetTransaction(string tx) { if (Client == null) { throw new NullReferenceException("Client not configured"); } if (string.IsNullOrEmpty(tx)) { throw new ArgumentNullException(nameof(tx)); } var neoGetRawTransaction = new NeoGetRawTransaction(Client); return(await neoGetRawTransaction.SendRequestAsync(tx)); }
public override async Task <Transaction> ExecuteAsync(IClient client) { var rawTransaction = new NeoGetRawTransaction(client); return(await rawTransaction.SendRequestAsync("f4250dab094c38d8265acc15c366dc508d2e14bf5699e12d9df26577ed74d657")); // todo move to settings }