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 TransactionBroadcaster(NeoSendRawTransaction neoRawTransactionSender, IUnconfirmedTransactionRepository unconfirmedTransactionRepository, IObservableOperationRepository observableOperationRepository, ITransactionOutputsService transactionOutputsService, IBlockchainProvider blockchainProvider) { _neoRawTransactionSender = neoRawTransactionSender; _unconfirmedTransactionRepository = unconfirmedTransactionRepository; _observableOperationRepository = observableOperationRepository; _transactionOutputsService = transactionOutputsService; _blockchainProvider = blockchainProvider; }
public async Task <bool> SendTransactionAsync(string signedTx) { if (Client == null) { throw new NullReferenceException("Client not configured"); } if (signedTx == null) { throw new ArgumentNullException(nameof(signedTx)); } var neoSendRawTransaction = new NeoSendRawTransaction(Client); return(await neoSendRawTransaction.SendRequestAsync(signedTx)); }