public async void GetInputTest( BitcoinBasedCurrency currency, string baseUri, string txId, uint inputIndex, string prevTxId, uint prevTxOutputIndex) { var api = new InsightApi(currency, baseUri); var input = await api.GetInputAsync(txId, inputIndex); Assert.NotNull(input); Assert.Equal(prevTxId, input.Hash); Assert.Equal(prevTxOutputIndex, input.Index); }
public async void GetInputTest( BitcoinBasedCurrency currency, string baseUri, string txId, uint inputIndex, string prevTxId, uint prevTxOutputIndex) { var api = new InsightApi(currency, baseUri); var inputResult = await api.GetInputAsync(txId, inputIndex); Assert.False(inputResult.HasError, inputResult.Error?.Description ?? ""); var input = inputResult.Value; Assert.NotNull(input); Assert.Equal(prevTxId, input.Hash); Assert.Equal(prevTxOutputIndex, input.Index); }