├── .gitignore ├── .gitlab-ci.yml ├── CryptoApisLibrary.Tests ├── BaseCollectionTest.cs ├── BaseCollectionTestWithoutSkip.cs ├── BaseTest.cs ├── Blockchains │ ├── Addresses │ │ ├── AddressTransactions │ │ │ ├── BaseBtcSimilarCoin.cs │ │ │ ├── BaseEthSimilarCoin.cs │ │ │ ├── BchMain.cs │ │ │ ├── BchTest.cs │ │ │ ├── BtcMain.cs │ │ │ ├── BtcSimilarCoin.cs │ │ │ ├── BtcTest.cs │ │ │ ├── DashMain.cs │ │ │ ├── DashTest.cs │ │ │ ├── DogeMain.cs │ │ │ ├── DogeTest.cs │ │ │ ├── EtcMain.cs │ │ │ ├── EtcMorden.cs │ │ │ ├── EthMain.cs │ │ │ ├── EthRinkeby.cs │ │ │ ├── EthRopsten.cs │ │ │ ├── EthSimilarCoin.cs │ │ │ ├── LtcMain.cs │ │ │ └── LtcTest.cs │ │ ├── GenerateAcount │ │ │ └── EthSimilarCoin.cs │ │ ├── GenerateAddress │ │ │ ├── BtcSimilarCoin.cs │ │ │ └── EthSimilarCoin.cs │ │ ├── GetAddress │ │ │ ├── BtcSimilarCoin.cs │ │ │ └── EthSimilarCoin.cs │ │ ├── MultisignatureAddress │ │ │ ├── BaseBtcSimilarCoin.cs │ │ │ ├── BchMain.cs │ │ │ ├── BchTest.cs │ │ │ ├── BtcMain.cs │ │ │ ├── BtcSimilarCoin.cs │ │ │ ├── BtcTest.cs │ │ │ ├── DashMain.cs │ │ │ ├── DashTest.cs │ │ │ ├── DogeMain.cs │ │ │ ├── DogeTest.cs │ │ │ ├── LtcMain.cs │ │ │ └── LtcTest.cs │ │ └── Nonce │ │ │ └── EthSimilarCoin.cs │ ├── Contracts │ │ ├── Deploy │ │ │ └── EthSimilarCoin.cs │ │ └── EstimateGas │ │ │ └── EthSimilarCoin.cs │ ├── Info │ │ ├── GetBlockHash │ │ │ ├── BtcSimilarCoin.cs │ │ │ └── EthSimilarCoin.cs │ │ ├── GetBlockHeight │ │ │ ├── BtcSimilarCoin.cs │ │ │ └── EthSimilarCoin.cs │ │ ├── GetInfo │ │ │ ├── BtcSimilarCoin.cs │ │ │ └── EthSimilarCoin.cs │ │ └── GetLatestBlock │ │ │ ├── BtcSimilarCoin.cs │ │ │ └── EthSimilarCoin.cs │ ├── PaymentForwardings │ │ ├── CreateGetDelete │ │ │ ├── BtcSimilarCoin.cs │ │ │ └── EthSimilarCoin.cs │ │ ├── CreateUsingPrivateKey │ │ │ └── EthSimilarCoin.cs │ │ └── DeletePayment │ │ │ ├── BtcSimilarCoin.cs │ │ │ └── EthSimilarCoin.cs │ ├── Tokens │ │ ├── GetBalance │ │ │ └── EthSimilarCoin.cs │ │ ├── GetTokens │ │ │ ├── BaseEthSimilarCoin.cs │ │ │ ├── EthMain.cs │ │ │ ├── EthRinkeby.cs │ │ │ ├── EthRopsten.cs │ │ │ └── EthSimilarCoin.cs │ │ ├── GetTransactions │ │ │ ├── BaseEthSimilarCoin.cs │ │ │ ├── EthMain.cs │ │ │ ├── EthRinkeby.cs │ │ │ ├── EthRopsten.cs │ │ │ └── EthSimilarCoin.cs │ │ ├── TransferUsingPassword │ │ │ └── EthSimilarCoin.cs │ │ └── TransferUsingPrivateKey │ │ │ └── EthSimilarCoin.cs │ ├── Transactions │ │ ├── CreateTransaction │ │ │ ├── BaseBtcSimilarCoin.cs │ │ │ ├── BchMain.cs │ │ │ ├── BchTest.cs │ │ │ ├── BtcMain.cs │ │ │ ├── BtcTest.cs │ │ │ ├── DashMain.cs │ │ │ ├── DashTest.cs │ │ │ ├── DogeMain.cs │ │ │ ├── DogeTest.cs │ │ │ ├── LtcMain.cs │ │ │ └── LtcTest.cs │ │ ├── CreateTransactionPassword │ │ │ ├── BaseEthSimilarCoin.cs │ │ │ ├── EtcMain.cs │ │ │ ├── EtcMorden.cs │ │ │ ├── EthMain.cs │ │ │ ├── EthRinkeby.cs │ │ │ └── EthRopsten.cs │ │ ├── CreateTransactionPasswordWithGas │ │ │ ├── BaseEthSimilarCoin.cs │ │ │ ├── EtcMain.cs │ │ │ ├── EtcMorden.cs │ │ │ ├── EthMain.cs │ │ │ ├── EthRinkeby.cs │ │ │ └── EthRopsten.cs │ │ ├── CreateTransactionPrivateKey │ │ │ ├── BaseEthSimilarCoin.cs │ │ │ ├── EtcMain.cs │ │ │ ├── EtcMorden.cs │ │ │ ├── EthMain.cs │ │ │ ├── EthRinkeby.cs │ │ │ └── EthRopsten.cs │ │ ├── CreateTransactionPrivateKeyWithGas │ │ │ ├── BaseEthSimilarCoin.cs │ │ │ ├── EtcMain.cs │ │ │ ├── EtcMorden.cs │ │ │ ├── EthMain.cs │ │ │ ├── EthRinkeby.cs │ │ │ └── EthRopsten.cs │ │ ├── DecodeTransaction │ │ │ ├── BaseBtcSimilarCoin.cs │ │ │ ├── BchMain.cs │ │ │ ├── BchTest.cs │ │ │ ├── BtcMain.cs │ │ │ ├── BtcTest.cs │ │ │ ├── DashMain.cs │ │ │ ├── DashTest.cs │ │ │ ├── DogeMain.cs │ │ │ ├── DogeTest.cs │ │ │ ├── LtcMain.cs │ │ │ └── LtcTest.cs │ │ ├── EstimateTransactionGas │ │ │ ├── BaseEthSimilarCoin.cs │ │ │ ├── EtcMain.cs │ │ │ ├── EtcMorden.cs │ │ │ ├── EthMain.cs │ │ │ ├── EthRinkeby.cs │ │ │ └── EthRopsten.cs │ │ ├── GetInfoByBlockHashAndTransactionIndex │ │ │ ├── BaseEthSimilarCoin.cs │ │ │ ├── EtcMain.cs │ │ │ ├── EtcMorden.cs │ │ │ ├── EthMain.cs │ │ │ ├── EthRinkeby.cs │ │ │ └── EthRopsten.cs │ │ ├── GetInfoByBlockHeightAndTransactionIndex │ │ │ ├── BaseEthSimilarCoin.cs │ │ │ ├── EtcMain.cs │ │ │ ├── EtcMorden.cs │ │ │ ├── EthMain.cs │ │ │ ├── EthRinkeby.cs │ │ │ └── EthRopsten.cs │ │ ├── GetInfoByTransactionId │ │ │ ├── BaseBtcSimilarCoin.cs │ │ │ ├── BaseEthSimilarCoin.cs │ │ │ ├── BchMain.cs │ │ │ ├── BchTest.cs │ │ │ ├── BtcMain.cs │ │ │ ├── BtcTest.cs │ │ │ ├── DashMain.cs │ │ │ ├── DashTest.cs │ │ │ ├── DogeMain.cs │ │ │ ├── DogeTest.cs │ │ │ ├── EtcMain.cs │ │ │ ├── EtcMorden.cs │ │ │ ├── EthMain.cs │ │ │ ├── EthRinkeby.cs │ │ │ ├── EthRopsten.cs │ │ │ ├── LtcMain.cs │ │ │ └── LtcTest.cs │ │ ├── GetInfosByBlockHash │ │ │ ├── BaseBtcSimilarCoin.cs │ │ │ ├── BchMain.cs │ │ │ ├── BchTest.cs │ │ │ ├── BtcMain.cs │ │ │ ├── BtcTest.cs │ │ │ ├── DashMain.cs │ │ │ ├── DashTest.cs │ │ │ ├── DogeMain.cs │ │ │ ├── DogeTest.cs │ │ │ ├── LtcMain.cs │ │ │ └── LtcTest.cs │ │ ├── GetInfosByBlockHeight │ │ │ ├── BaseBtcSimilarCoin.cs │ │ │ ├── BaseEthSimilarCoin.cs │ │ │ ├── BchMain.cs │ │ │ ├── BchTest.cs │ │ │ ├── BtcMain.cs │ │ │ ├── BtcTest.cs │ │ │ ├── DashMain.cs │ │ │ ├── DashTest.cs │ │ │ ├── DogeMain.cs │ │ │ ├── DogeTest.cs │ │ │ ├── EtcMain.cs │ │ │ ├── EtcMorden.cs │ │ │ ├── EthMain.cs │ │ │ ├── EthRinkeby.cs │ │ │ ├── EthRopsten.cs │ │ │ ├── LtcMain.cs │ │ │ └── LtcTest.cs │ │ ├── GetUnconfirmedTransactions │ │ │ ├── BaseBtcSimilarCoin.cs │ │ │ ├── BchMain.cs │ │ │ ├── BchTest.cs │ │ │ ├── BtcMain.cs │ │ │ ├── BtcTest.cs │ │ │ ├── DashMain.cs │ │ │ ├── DashTest.cs │ │ │ ├── DogeMain.cs │ │ │ ├── DogeTest.cs │ │ │ ├── LtcMain.cs │ │ │ └── LtcTest.cs │ │ ├── LocallySignTransaction │ │ │ ├── BaseEthSimilarCoin.cs │ │ │ ├── EtcMain.cs │ │ │ ├── EtcMorden.cs │ │ │ ├── EthMain.cs │ │ │ ├── EthRinkeby.cs │ │ │ └── EthRopsten.cs │ │ ├── NewTransaction │ │ │ ├── BaseBtcSimilarCoin.cs │ │ │ ├── BchMain.cs │ │ │ ├── BchTest.cs │ │ │ ├── BtcMain.cs │ │ │ ├── BtcTest.cs │ │ │ ├── DashMain.cs │ │ │ ├── DashTest.cs │ │ │ ├── DogeMain.cs │ │ │ ├── DogeTest.cs │ │ │ ├── LtcMain.cs │ │ │ └── LtcTest.cs │ │ ├── NewTransactionHd │ │ │ ├── BaseBtcSimilarCoin.cs │ │ │ ├── BchMain.cs │ │ │ ├── BchTest.cs │ │ │ ├── BtcMain.cs │ │ │ ├── BtcTest.cs │ │ │ ├── DashMain.cs │ │ │ ├── DashTest.cs │ │ │ ├── DogeMain.cs │ │ │ ├── DogeTest.cs │ │ │ ├── LtcMain.cs │ │ │ └── LtcTest.cs │ │ ├── PendingTransactions │ │ │ ├── BaseEthSimilarCoin.cs │ │ │ ├── EtcMain.cs │ │ │ ├── EtcMorden.cs │ │ │ ├── EthMain.cs │ │ │ ├── EthRinkeby.cs │ │ │ └── EthRopsten.cs │ │ ├── PushTransaction │ │ │ ├── BaseEthSimilarCoin.cs │ │ │ ├── EtcMain.cs │ │ │ ├── EtcMorden.cs │ │ │ ├── EthMain.cs │ │ │ ├── EthRinkeby.cs │ │ │ └── EthRopsten.cs │ │ ├── QueuedTransactions │ │ │ ├── BaseEthSimilarCoin.cs │ │ │ ├── EtcMain.cs │ │ │ ├── EtcMorden.cs │ │ │ ├── EthMain.cs │ │ │ ├── EthRinkeby.cs │ │ │ └── EthRopsten.cs │ │ ├── SendAllAmountUsingPassword │ │ │ ├── BaseEthSimilarCoin.cs │ │ │ ├── EtcMain.cs │ │ │ ├── EtcMorden.cs │ │ │ ├── EthMain.cs │ │ │ ├── EthRinkeby.cs │ │ │ └── EthRopsten.cs │ │ ├── SendAllAmountUsingPrivateKey │ │ │ ├── BaseEthSimilarCoin.cs │ │ │ ├── EtcMain.cs │ │ │ ├── EtcMorden.cs │ │ │ ├── EthMain.cs │ │ │ ├── EthRinkeby.cs │ │ │ └── EthRopsten.cs │ │ ├── SendTransaction │ │ │ ├── BaseBtcSimilarCoin.cs │ │ │ ├── BchMain.cs │ │ │ ├── BchTest.cs │ │ │ ├── BtcMain.cs │ │ │ ├── BtcTest.cs │ │ │ ├── DashMain.cs │ │ │ ├── DashTest.cs │ │ │ ├── DogeMain.cs │ │ │ ├── DogeTest.cs │ │ │ ├── LtcMain.cs │ │ │ └── LtcTest.cs │ │ └── TransactionsFee │ │ │ ├── BaseBtcSimilarCoin.cs │ │ │ ├── BaseEthSimilarCoin.cs │ │ │ ├── BchMain.cs │ │ │ ├── BchTest.cs │ │ │ ├── BtcMain.cs │ │ │ ├── BtcTest.cs │ │ │ ├── DashMain.cs │ │ │ ├── DashTest.cs │ │ │ ├── DogeMain.cs │ │ │ ├── DogeTest.cs │ │ │ ├── EtcMain.cs │ │ │ ├── EtcMorden.cs │ │ │ ├── EthMain.cs │ │ │ ├── EthRinkeby.cs │ │ │ ├── EthRopsten.cs │ │ │ ├── LtcMain.cs │ │ │ └── LtcTest.cs │ ├── Wallets │ │ ├── ComplexHdTest │ │ │ └── BtcSimilarCoin.cs │ │ ├── ComplexTest │ │ │ └── BtcSimilarCoin.cs │ │ ├── CreateXPub │ │ │ └── BtcSimilarCoin.cs │ │ ├── DeleteHdWallet │ │ │ └── BtcSimilarCoin.cs │ │ ├── DeleteWallet │ │ │ └── BtcSimilarCoin.cs │ │ ├── GetXPubChangeAddresses │ │ │ └── BtcSimilarCoin.cs │ │ ├── GetXPubReceiveAddresses │ │ │ └── BtcSimilarCoin.cs │ │ └── ImportAddressAsWallet │ │ │ └── BtcSimilarCoin.cs │ └── WebhookNotifications │ │ ├── BtcSimilarCoin.cs │ │ ├── CreateAddressGetDelete │ │ ├── BtcSimilarCoin.cs │ │ └── EthSimilarCoin.cs │ │ ├── CreateConfirmedTransaction │ │ ├── BtcSimilarCoin.cs │ │ └── EthSimilarCoin.cs │ │ ├── CreateNewBlock │ │ ├── BtcSimilarCoin.cs │ │ └── EthSimilarCoin.cs │ │ ├── CreateToken │ │ └── EthSimilarCoin.cs │ │ ├── CreateTransactionConfirmations │ │ ├── BtcSimilarCoin.cs │ │ └── EthSimilarCoin.cs │ │ ├── CreateTransactionPool │ │ └── EthSimilarCoin.cs │ │ ├── DeleteAllHooks │ │ ├── BtcSimilarCoin.cs │ │ └── EthSimilarCoin.cs │ │ ├── DeleteHook │ │ ├── BtcSimilarCoin.cs │ │ └── EthSimilarCoin.cs │ │ └── EthSimilarCoin.cs ├── CryptoApisLibrary.Tests.csproj ├── Exchanges │ ├── Info │ │ ├── AssetDetails.cs │ │ ├── Assets.cs │ │ ├── AssetsMeta.cs │ │ ├── ExchangeDetails.cs │ │ ├── Exchanges.cs │ │ ├── ExchangesMeta.cs │ │ ├── ExchangesSupportingAsset.cs │ │ ├── ExchangesSupportingPairs.cs │ │ ├── SymbolDetails.cs │ │ ├── Symbols.cs │ │ └── SymbolsInExchange.cs │ ├── Ohlcv │ │ ├── HistoricalOhlcv.cs │ │ ├── HistoricalOhlcvByExchange.cs │ │ ├── HistoricalOhlcvByExchangeAndAsset.cs │ │ ├── HistoricalOhlcvWithEndPeriod.cs │ │ ├── HistoricalOhlcvWithEndPeriodByExchange.cs │ │ ├── HistoricalOhlcvWithEndPeriodByExchangeAndAsset.cs │ │ ├── LatestOhlcv.cs │ │ ├── LatestOhlcvByExchange.cs │ │ ├── LatestOhlcvByExchangeAndAsset.cs │ │ └── Periods.cs │ ├── OrderBook │ │ └── OrderBook.cs │ ├── Rates │ │ ├── ExchangeRate.cs │ │ ├── ExchangeRateInExchange.cs │ │ ├── ExchangeRates.cs │ │ ├── ExchangeRatesInExchange.cs │ │ ├── ExchangeRatesInExchangeTimestamp.cs │ │ └── ExchangeRatesTimeStamp.cs │ └── Trades │ │ ├── HistoricalTradesByAssetPair.cs │ │ ├── HistoricalTradesByAssetPairAndExchange.cs │ │ ├── HistoricalTradesByAssetPairAndExchangeStartDate.cs │ │ ├── HistoricalTradesByAssetPairAndExchangeStartDateEndDate.cs │ │ ├── HistoricalTradesByAssetPairStartDate.cs │ │ ├── HistoricalTradesByAssetPairStartDateEndDate.cs │ │ ├── HistoricalTradesByBaseAsset.cs │ │ ├── HistoricalTradesByBaseAssetStartDate.cs │ │ ├── HistoricalTradesByBaseAssetStartDateEndDate.cs │ │ ├── HistoricalTradesByExchange.cs │ │ ├── HistoricalTradesByExchangeStartDate.cs │ │ ├── HistoricalTradesByExchangeStartDateEndDate.cs │ │ ├── HistoricalTradesBySymbol.cs │ │ ├── HistoricalTradesBySymbolStartDate.cs │ │ ├── HistoricalTradesBySymbolStartDateEndDate.cs │ │ ├── LatestAssetsPairTrades.cs │ │ ├── LatestBaseAssetTrades.cs │ │ ├── LatestExchangeAssetsPairTrades.cs │ │ ├── LatestExchangeTrades.cs │ │ ├── LatestSymbolTrades.cs │ │ └── LatestTrades.cs ├── Features.cs ├── IncorrectedEndpoints.txt ├── ResponseRequestLogger.cs ├── SomeFeatures.txt ├── TestDataProviders │ ├── BtcSimilarNetworkCoinProviderAttribute.cs │ └── EthSimilarNetworkCoinProviderAttribute.cs └── TestMissingApiKey.cs ├── CryptoApisLibrary ├── CryptoApisLibrary.csproj ├── CryptoManager.cs ├── DataTypes │ ├── Account.cs │ ├── Asset.cs │ ├── AssetMeta.cs │ ├── BtcTransaction.cs │ ├── BtcUnconfirmedTransaction.cs │ ├── Coin.cs │ ├── EthTransaction.cs │ ├── EthTransactionInfo.cs │ ├── Exchange.cs │ ├── ExchangeAssets.cs │ ├── ExchangeMeta.cs │ ├── ExchangeRate.cs │ ├── ExchangeSupportingAsset.cs │ ├── Fee.cs │ ├── Logo.cs │ ├── MatchType.cs │ ├── Network.cs │ ├── NetworkCoin.cs │ ├── OHLCV.cs │ ├── OrderBook.cs │ ├── Period.cs │ ├── PeriodInfo.cs │ ├── Symbol.cs │ ├── Trade.cs │ ├── TradeDirection.cs │ ├── TradeType.cs │ ├── TransactionAddress.cs │ ├── Wallet.cs │ └── WebHook.cs ├── Exceptions │ ├── RequestException.cs │ ├── UndefineMatchTypeException.cs │ ├── UndefineQuoteTradeDirectionException.cs │ ├── UndefineTradeDirectionException.cs │ └── UndefineTradeTypeException.cs ├── ICryptoManager.cs ├── IResponseRequestLogger.cs ├── JsonSerializer.cs ├── Misc │ ├── Consts.cs │ ├── CryptoApiRequest.cs │ ├── GetFilenameProvider.cs │ ├── ProxyCredentials.cs │ └── Tools.cs ├── Modules │ ├── BaseModule.cs │ ├── Blockchains │ │ ├── Addresses │ │ │ ├── BlockchainAddressModule.Async.cs │ │ │ ├── BlockchainAddressModule.Sync.cs │ │ │ ├── BlockchainAddressModule.cs │ │ │ ├── IBlockchainAddressModule.cs │ │ │ └── Requests.cs │ │ ├── BlockchainModules.cs │ │ ├── Contracts │ │ │ ├── BlockchainContractModule.Async.cs │ │ │ ├── BlockchainContractModule.Sync.cs │ │ │ ├── BlockchainContractModule.cs │ │ │ ├── IBlockchainContractModule.cs │ │ │ └── Requests.cs │ │ ├── IBlockchainModules.cs │ │ ├── Info │ │ │ ├── BlockchainInfoModule.Async.cs │ │ │ ├── BlockchainInfoModule.Sync.cs │ │ │ ├── BlockchainInfoModule.cs │ │ │ ├── IBlockchainInfoModule.cs │ │ │ └── Requests.cs │ │ ├── PaymentForwardings │ │ │ ├── BlockchainPaymentForwardingModule.Async.cs │ │ │ ├── BlockchainPaymentForwardingModule.Sync.cs │ │ │ ├── BlockchainPaymentForwardingModule.cs │ │ │ ├── IBlockchainPaymentForwardingModule.cs │ │ │ └── Requests.cs │ │ ├── Tokens │ │ │ ├── BlockchainTokenModule.Async.cs │ │ │ ├── BlockchainTokenModule.Sync.cs │ │ │ ├── BlockchainTokenModule.cs │ │ │ ├── IBlockchainTokenModule.cs │ │ │ └── Requests.cs │ │ ├── Transactions │ │ │ ├── BlockchainTransactionModule.Async.cs │ │ │ ├── BlockchainTransactionModule.Sync.cs │ │ │ ├── BlockchainTransactionModule.cs │ │ │ ├── IBlockchainTransactionModule.cs │ │ │ └── Requests.cs │ │ ├── Wallets │ │ │ ├── BlockchainWalletModule.Async.cs │ │ │ ├── BlockchainWalletModule.Sync.cs │ │ │ ├── BlockchainWalletModule.cs │ │ │ ├── IBlockchainWalletModule.cs │ │ │ └── Requests.cs │ │ └── WebhookNotifications │ │ │ ├── BlockchainWebhookNotificationModule.Async.cs │ │ │ ├── BlockchainWebhookNotificationModule.Sync.cs │ │ │ ├── BlockchainWebhookNotificationModule.cs │ │ │ ├── IBlockchainWebhookNotificationModule.cs │ │ │ └── Requests.cs │ ├── Exchanges │ │ ├── ExchangeModules.cs │ │ ├── IExchangeModules.cs │ │ ├── Info │ │ │ ├── ExchangeInfoModules.Async.cs │ │ │ ├── ExchangeInfoModules.Sync.cs │ │ │ ├── ExchangeInfoModules.cs │ │ │ ├── IExchangeInfoModules.cs │ │ │ └── Requests.cs │ │ ├── Ohlcv │ │ │ ├── ExchangeOhlcvModules.Async.cs │ │ │ ├── ExchangeOhlcvModules.Sync.cs │ │ │ ├── ExchangeOhlcvModules.cs │ │ │ ├── IExchangeOhlcvModules.cs │ │ │ └── Requests.cs │ │ ├── OrderBook │ │ │ ├── ExchangeOrderBookModules.Async.cs │ │ │ ├── ExchangeOrderBookModules.Sync.cs │ │ │ ├── ExchangeOrderBookModules.cs │ │ │ ├── IExchangeOrderBookModules.cs │ │ │ └── Requests.cs │ │ ├── Rates │ │ │ ├── ExchangeRatesModules.Async.cs │ │ │ ├── ExchangeRatesModules.Sync.cs │ │ │ ├── ExchangeRatesModules.cs │ │ │ ├── IExchangeRatesModules.cs │ │ │ └── Requests.cs │ │ └── Trades │ │ │ ├── ExchangeTradesModules.Async.cs │ │ │ ├── ExchangeTradesModules.Sync.cs │ │ │ ├── ExchangeTradesModules.cs │ │ │ ├── IExchangeTradesModules.cs │ │ │ └── Requests.cs │ └── Trade │ │ ├── Accounts │ │ ├── ITradeAccountsModules.cs │ │ ├── Requests.cs │ │ ├── TradeAccountsModules.Async.cs │ │ ├── TradeAccountsModules.Sync.cs │ │ └── TradeAccountsModules.cs │ │ ├── Arbitrage │ │ ├── ITradeArbitrageModules.cs │ │ ├── Requests.cs │ │ ├── TradeArbitrageModules.Async.cs │ │ ├── TradeArbitrageModules.Sync.cs │ │ └── TradeArbitrageModules.cs │ │ ├── ITradeModules.cs │ │ ├── Private │ │ ├── ITradePrivateModules.cs │ │ ├── Requests.cs │ │ ├── TradePrivateModules.Async.cs │ │ ├── TradePrivateModules.Sync.cs │ │ └── TradePrivateModules.cs │ │ └── TradeModules.cs ├── RequestTypes │ ├── AddAddressToWalletRequest.cs │ ├── CreateAccountRequest.cs │ ├── CreateBtcPaymentRequest.cs │ ├── CreateBtcTransactionRequest.cs │ ├── CreateEthPaymentRequest.cs │ ├── CreateEthTransactionRequest.cs │ ├── CreateHdWalletRequest.cs │ ├── CreateWalletRequest.cs │ ├── CreateWebHookRequest.cs │ ├── CreateXPubRequest.cs │ ├── DecodeTransactionRequest.cs │ ├── DeployContractRequest.cs │ ├── EstimateTransactionRequest.cs │ ├── GenerateEthAccountRequest.cs │ ├── GenerateHdWalletAddressRequest.cs │ ├── GetTransactionInfosRequest.cs │ ├── GetXPubAddressesRequest.cs │ ├── ImportAddressAsWalletRequest.cs │ ├── NewBtcTransactionRequest.cs │ ├── NewHdBtcTransactionRequest.cs │ ├── PushTransactionRequest.cs │ ├── RefundTransactionRequest.cs │ ├── SendBtcTransactionRequest.cs │ ├── SendEthTransactionRequest.cs │ ├── SignTransactionRequest.cs │ └── TransferTokensRequest.cs └── ResponseTypes │ ├── BaseCollectionResponse.cs │ ├── BaseResponse.cs │ ├── Blockchains │ ├── BtcDecodeTransactionResponse.cs │ ├── CreateAddressWebHookResponse.cs │ ├── CreateBtcPaymentResponse.cs │ ├── CreateBtcTransactionResponse.cs │ ├── CreateConfirmedTransactionWebHookResponse.cs │ ├── CreateEthTransactionResponse.cs │ ├── CreateTransactionConfirmationsResponse.cs │ ├── CreateXPubResponse.cs │ ├── DeleteAllWebhookResponse.cs │ ├── DeleteBtcPaymentResponse.cs │ ├── DeleteWalletResponse.cs │ ├── DeleteWebhookResponse.cs │ ├── DeployContractResponse.cs │ ├── EstimateGasContractResponse.cs │ ├── EstimateTransactionGasResponse.cs │ ├── GenerateAddressResponse.cs │ ├── GenerateEthAccountResponse.cs │ ├── GenerateWalletAddressResponse.cs │ ├── GetAddressResponse.cs │ ├── GetAddressTransactionsResponse.cs │ ├── GetBalanceTokenResponse.cs │ ├── GetBtcHistoricalPaymentsResponse.cs │ ├── GetBtcPaymentsResponse.cs │ ├── GetEthTokensResponse.cs │ ├── GetEthTransactionsResponse.cs │ ├── GetHashInfoResponse.cs │ ├── GetHdWalletsResponse.cs │ ├── GetHooksResponse.cs │ ├── GetInfoResponse.cs │ ├── GetInternalTransactionsResponse.cs │ ├── GetMultisignatureAddressesResponse.cs │ ├── GetNonceResponse.cs │ ├── GetTokenTotalSupplyAndDecimalsResponse.cs │ ├── GetTransactionInfosResponse.cs │ ├── GetUnconfirmedTransactionsResponse.cs │ ├── GetWalletsResponse.cs │ ├── GetXPubAddressesResponse.cs │ ├── HdWalletInfoResponse.cs │ ├── ImportAddressAsWalletResponse.cs │ ├── LocallySignTransactionResponse.cs │ ├── NewBtcTransactionResponse.cs │ ├── Payloads │ │ ├── CreateAddressWebHookPayload.cs │ │ ├── CreateBtcPaymentPayload.cs │ │ ├── CreateConfirmedTransactionWebHookPayload.cs │ │ ├── CreateEthPaymentPayload.cs │ │ ├── CreateTransactionConfirmationsWebHookPayload.cs │ │ ├── DeletePaymentPayload.cs │ │ ├── GenerateAddressPayload.cs │ │ ├── GetAddressPayload.cs │ │ ├── GetHashInfoPayload.cs │ │ ├── GetInfoPayload.cs │ │ └── PendingTransactionPayload.cs │ ├── PendingTransactionsResponse.cs │ ├── PushTransactionResponse.cs │ ├── QueuedTransactionsResponse.cs │ ├── RefundTransactionResponse.cs │ ├── RemoveAddressResponse.cs │ ├── SendBtcTransactionResponse.cs │ ├── SignBtcTransactionResponse.cs │ ├── TransactionInfoResponse.cs │ ├── TransactionsFeeResponse.cs │ ├── TransferTokensResponse.cs │ ├── WalletInfoResponse.cs │ └── WebHookResponse.cs │ ├── Errors │ ├── ErrorResponseVariant1.cs │ └── ErrorResponseVariant2.cs │ ├── ExchangeRateResponse.cs │ ├── Exchanges │ ├── AssetDetailsResponse.cs │ ├── AssetsMetaResponse.cs │ ├── AssetsResponse.cs │ ├── CurrentRateInExchangeResponse.cs │ ├── CurrentRatesInExchangeResponse.cs │ ├── ExchangeDetailsResponse.cs │ ├── ExchangeRateResponse.cs │ ├── ExchangeRatesResponse.cs │ ├── ExchangesAssetsResponse.cs │ ├── ExchangesMetaResponse.cs │ ├── ExchangesResponse.cs │ ├── ExchangesSupportingAssetResponse.cs │ ├── HistoricalOhlcvResponse.cs │ ├── HistoricalTradesResponse.cs │ ├── LatestOhlcvResponse.cs │ ├── LatestTradesResponse.cs │ ├── OrderBookResponse.cs │ ├── PeriodsResponse.cs │ ├── SymbolDetailsResponse.cs │ └── SymbolsResponse.cs │ ├── ICollectionResponse.cs │ ├── IResponse.cs │ ├── MetaCollection.cs │ ├── MetaCollectionCount.cs │ ├── MetaCollectionResponse.cs │ ├── MetaCollectionResultsOnly.cs │ └── Trades │ ├── CreateAccountResponse.cs │ └── GetAccountResponse.cs ├── CryptoApisSdkLibrary.sln ├── CryptoApisSnippets ├── CryptoApisSnippets.csproj ├── CryptoManager.cs ├── DemoProgram.cs └── Samples │ ├── Blockchains │ ├── Addresses │ │ ├── GenerateAccountEth.cs │ │ ├── GenerateAddressBch.cs │ │ ├── GenerateAddressBtc.cs │ │ ├── GenerateAddressDash.cs │ │ ├── GenerateAddressDoge.cs │ │ ├── GenerateAddressEth.cs │ │ ├── GenerateAddressLtc.cs │ │ ├── GetAddressBch.cs │ │ ├── GetAddressBtc.cs │ │ ├── GetAddressDash.cs │ │ ├── GetAddressDoge.cs │ │ ├── GetAddressEth.cs │ │ ├── GetAddressInMultisignatureAddressesBch.cs │ │ ├── GetAddressInMultisignatureAddressesBtc.cs │ │ ├── GetAddressInMultisignatureAddressesDash.cs │ │ ├── GetAddressInMultisignatureAddressesDoge.cs │ │ ├── GetAddressInMultisignatureAddressesLtc.cs │ │ ├── GetAddressLtc.cs │ │ ├── GetAddressTransactionsBch.cs │ │ ├── GetAddressTransactionsBtc.cs │ │ ├── GetAddressTransactionsDash.cs │ │ ├── GetAddressTransactionsDoge.cs │ │ ├── GetAddressTransactionsEth.cs │ │ ├── GetAddressTransactionsLtc.cs │ │ ├── GetNonceEtc.cs │ │ └── GetNonceEth.cs │ ├── BlockchainSnippets.cs │ ├── Contracts │ │ ├── Deploy.cs │ │ └── EstimateGas.cs │ ├── Info │ │ ├── GetBlockHashBch.cs │ │ ├── GetBlockHashBtc.cs │ │ ├── GetBlockHashDash.cs │ │ ├── GetBlockHashDoge.cs │ │ ├── GetBlockHashEth.cs │ │ ├── GetBlockHashLtc.cs │ │ ├── GetBlockHeightBch.cs │ │ ├── GetBlockHeightBtc.cs │ │ ├── GetBlockHeightDash.cs │ │ ├── GetBlockHeightDoge.cs │ │ ├── GetBlockHeightEth.cs │ │ ├── GetBlockHeightLtc.cs │ │ ├── GetInfoBch.cs │ │ ├── GetInfoBtc.cs │ │ ├── GetInfoDash.cs │ │ ├── GetInfoDoge.cs │ │ ├── GetInfoEth.cs │ │ ├── GetInfoLtc.cs │ │ ├── GetLatestBlockBch.cs │ │ ├── GetLatestBlockBtc.cs │ │ ├── GetLatestBlockDash.cs │ │ ├── GetLatestBlockDoge.cs │ │ ├── GetLatestBlockEth.cs │ │ └── GetLatestBlockLtc.cs │ ├── PaymentForwardings │ │ ├── CreatePaymentBch.cs │ │ ├── CreatePaymentBtc.cs │ │ ├── CreatePaymentDash.cs │ │ ├── CreatePaymentDoge.cs │ │ ├── CreatePaymentEth.cs │ │ ├── CreatePaymentLtc.cs │ │ ├── DeletePaymentBch.cs │ │ ├── DeletePaymentBtc.cs │ │ ├── DeletePaymentDash.cs │ │ ├── DeletePaymentDoge.cs │ │ ├── DeletePaymentEth.cs │ │ ├── DeletePaymentLtc.cs │ │ ├── GetHistoricalPaymentsBch.cs │ │ ├── GetHistoricalPaymentsBtc.cs │ │ ├── GetHistoricalPaymentsDash.cs │ │ ├── GetHistoricalPaymentsDoge.cs │ │ ├── GetHistoricalPaymentsEth.cs │ │ ├── GetHistoricalPaymentsLtc.cs │ │ ├── GetPaymentsBch.cs │ │ ├── GetPaymentsBtc.cs │ │ ├── GetPaymentsDash.cs │ │ ├── GetPaymentsDoge.cs │ │ ├── GetPaymentsEth.cs │ │ └── GetPaymentsLtc.cs │ ├── Tokens │ │ ├── GetBalanceEtc.cs │ │ ├── GetBalanceEth.cs │ │ ├── GetTokenTotalSupplyAndDecimalsEtc.cs │ │ ├── GetTokenTotalSupplyAndDecimalsEth.cs │ │ ├── GetTokensEth.cs │ │ ├── GetTransactionsEth.cs │ │ ├── TransferUsingPasswordEtc.cs │ │ ├── TransferUsingPasswordEth.cs │ │ ├── TransferUsingPrivateKeyEtc.cs │ │ └── TransferUsingPrivateKeyEth.cs │ ├── Transactions │ │ ├── CreateTransactionBch.cs │ │ ├── CreateTransactionBtc.cs │ │ ├── CreateTransactionDash.cs │ │ ├── CreateTransactionDoge.cs │ │ ├── CreateTransactionLtc.cs │ │ ├── CreateTransactionUsingPassword.cs │ │ ├── CreateTransactionUsingPrivateKey.cs │ │ ├── DecodeTransactionBch.cs │ │ ├── DecodeTransactionBtc.cs │ │ ├── DecodeTransactionDash.cs │ │ ├── DecodeTransactionDoge.cs │ │ ├── DecodeTransactionLtc.cs │ │ ├── EstimateTransactionGas.cs │ │ ├── GetInfoByBlockHashAndTransactionIndex.cs │ │ ├── GetInfoByBlockHeightAndTransactionIndex.cs │ │ ├── GetInfoByTransactionHashEth.cs │ │ ├── GetInfoByTransactionIdBch.cs │ │ ├── GetInfoByTransactionIdBtc.cs │ │ ├── GetInfoByTransactionIdDash.cs │ │ ├── GetInfoByTransactionIdDoge.cs │ │ ├── GetInfoByTransactionIdLtc.cs │ │ ├── GetInfosByBlockHashBch.cs │ │ ├── GetInfosByBlockHashBtc.cs │ │ ├── GetInfosByBlockHashDash.cs │ │ ├── GetInfosByBlockHashDoge.cs │ │ ├── GetInfosByBlockHashLtc.cs │ │ ├── GetInfosByBlockHeightBch.cs │ │ ├── GetInfosByBlockHeightBtc.cs │ │ ├── GetInfosByBlockHeightDash.cs │ │ ├── GetInfosByBlockHeightDoge.cs │ │ ├── GetInfosByBlockHeightEth.cs │ │ ├── GetInfosByBlockHeightLtc.cs │ │ ├── GetInternalTransactionsEth.cs │ │ ├── GetUnconfirmedTransactionsBch.cs │ │ ├── GetUnconfirmedTransactionsBtc.cs │ │ ├── GetUnconfirmedTransactionsDash.cs │ │ ├── GetUnconfirmedTransactionsDoge.cs │ │ ├── GetUnconfirmedTransactionsLtc.cs │ │ ├── LocallySignTransaction.cs │ │ ├── NewHdTransactionBch.cs │ │ ├── NewHdTransactionBtc.cs │ │ ├── NewHdTransactionDash.cs │ │ ├── NewHdTransactionDoge.cs │ │ ├── NewHdTransactionLtc.cs │ │ ├── NewTransactionBch.cs │ │ ├── NewTransactionBtc.cs │ │ ├── NewTransactionDash.cs │ │ ├── NewTransactionDoge.cs │ │ ├── NewTransactionLtc.cs │ │ ├── PendingTransactions.cs │ │ ├── PushTransaction.cs │ │ ├── QueuedTransactions.cs │ │ ├── SendAllAmountUsingPassword.cs │ │ ├── SendAllAmountUsingPrivateKey.cs │ │ ├── SendTransactionBch.cs │ │ ├── SendTransactionBtc.cs │ │ ├── SendTransactionDash.cs │ │ ├── SendTransactionDoge.cs │ │ ├── SendTransactionLtc.cs │ │ ├── SignTransactionBch.cs │ │ ├── SignTransactionBtc.cs │ │ ├── SignTransactionDash.cs │ │ ├── SignTransactionDoge.cs │ │ ├── SignTransactionLtc.cs │ │ ├── TransactionsFeeBch.cs │ │ ├── TransactionsFeeBtc.cs │ │ ├── TransactionsFeeDash.cs │ │ ├── TransactionsFeeDoge.cs │ │ ├── TransactionsFeeEth.cs │ │ └── TransactionsFeeLtc.cs │ ├── Wallets │ │ ├── AddAddressBch.cs │ │ ├── AddAddressBtc.cs │ │ ├── AddAddressDash.cs │ │ ├── AddAddressDoge.cs │ │ ├── AddAddressLtc.cs │ │ ├── CreateHdWalletBch.cs │ │ ├── CreateHdWalletBtc.cs │ │ ├── CreateHdWalletDash.cs │ │ ├── CreateHdWalletDoge.cs │ │ ├── CreateHdWalletLtc.cs │ │ ├── CreateWalletBch.cs │ │ ├── CreateWalletBtc.cs │ │ ├── CreateWalletDash.cs │ │ ├── CreateWalletDoge.cs │ │ ├── CreateWalletLtc.cs │ │ ├── CreateXPubBch.cs │ │ ├── CreateXPubBtc.cs │ │ ├── CreateXPubDash.cs │ │ ├── CreateXPubDoge.cs │ │ ├── CreateXPubLtc.cs │ │ ├── DeleteHdWalletBch.cs │ │ ├── DeleteHdWalletBtc.cs │ │ ├── DeleteHdWalletDash.cs │ │ ├── DeleteHdWalletDoge.cs │ │ ├── DeleteHdWalletLtc.cs │ │ ├── DeleteWalletBch.cs │ │ ├── DeleteWalletBtc.cs │ │ ├── DeleteWalletDash.cs │ │ ├── DeleteWalletDoge.cs │ │ ├── DeleteWalletLtc.cs │ │ ├── GenerateAddressesBch.cs │ │ ├── GenerateAddressesBtc.cs │ │ ├── GenerateAddressesDash.cs │ │ ├── GenerateAddressesDoge.cs │ │ ├── GenerateAddressesLtc.cs │ │ ├── GenerateHdAddressesBch.cs │ │ ├── GenerateHdAddressesBtc.cs │ │ ├── GenerateHdAddressesDash.cs │ │ ├── GenerateHdAddressesDoge.cs │ │ ├── GenerateHdAddressesLtc.cs │ │ ├── GetHdWalletBch.cs │ │ ├── GetHdWalletBtc.cs │ │ ├── GetHdWalletDash.cs │ │ ├── GetHdWalletDoge.cs │ │ ├── GetHdWalletLtc.cs │ │ ├── GetHdWalletsBch.cs │ │ ├── GetHdWalletsBtc.cs │ │ ├── GetHdWalletsDash.cs │ │ ├── GetHdWalletsDoge.cs │ │ ├── GetHdWalletsLtc.cs │ │ ├── GetWalletBch.cs │ │ ├── GetWalletBtc.cs │ │ ├── GetWalletDash.cs │ │ ├── GetWalletDoge.cs │ │ ├── GetWalletLtc.cs │ │ ├── GetWalletsBch.cs │ │ ├── GetWalletsBtc.cs │ │ ├── GetWalletsDash.cs │ │ ├── GetWalletsDoge.cs │ │ ├── GetWalletsLtc.cs │ │ ├── GetXPubChangeAddressesBch.cs │ │ ├── GetXPubChangeAddressesBtc.cs │ │ ├── GetXPubChangeAddressesDash.cs │ │ ├── GetXPubChangeAddressesDoge.cs │ │ ├── GetXPubChangeAddressesLtc.cs │ │ ├── GetXPubReceiveAddressesBch.cs │ │ ├── GetXPubReceiveAddressesBtc.cs │ │ ├── GetXPubReceiveAddressesDash.cs │ │ ├── GetXPubReceiveAddressesDoge.cs │ │ ├── GetXPubReceiveAddressesLtc.cs │ │ ├── ImportAddressAsWalletBch.cs │ │ ├── ImportAddressAsWalletBtc.cs │ │ ├── ImportAddressAsWalletDash.cs │ │ ├── ImportAddressAsWalletDoge.cs │ │ ├── ImportAddressAsWalletLtc.cs │ │ ├── RemoveAddressesBch.cs │ │ ├── RemoveAddressesBtc.cs │ │ ├── RemoveAddressesDash.cs │ │ ├── RemoveAddressesDoge.cs │ │ └── RemoveAddressesLtc.cs │ └── WebhookNotifications │ │ ├── CreateAddressBch.cs │ │ ├── CreateAddressBtc.cs │ │ ├── CreateAddressDash.cs │ │ ├── CreateAddressDoge.cs │ │ ├── CreateAddressEth.cs │ │ ├── CreateAddressLtc.cs │ │ ├── CreateConfirmedTransactionBch.cs │ │ ├── CreateConfirmedTransactionBtc.cs │ │ ├── CreateConfirmedTransactionDash.cs │ │ ├── CreateConfirmedTransactionDoge.cs │ │ ├── CreateConfirmedTransactionEth.cs │ │ ├── CreateConfirmedTransactionLtc.cs │ │ ├── CreateNewBlockBch.cs │ │ ├── CreateNewBlockBtc.cs │ │ ├── CreateNewBlockDash.cs │ │ ├── CreateNewBlockDoge.cs │ │ ├── CreateNewBlockEth.cs │ │ ├── CreateNewBlockLtc.cs │ │ ├── CreateToken.cs │ │ ├── CreateTransactionPool.cs │ │ ├── DeleteHookBch.cs │ │ ├── DeleteHookBtc.cs │ │ ├── DeleteHookDash.cs │ │ ├── DeleteHookDoge.cs │ │ ├── DeleteHookEth.cs │ │ ├── DeleteHookLtc.cs │ │ ├── GetHooksBch.cs │ │ ├── GetHooksBtc.cs │ │ ├── GetHooksDash.cs │ │ ├── GetHooksDoge.cs │ │ ├── GetHooksEth.cs │ │ └── GetHooksLtc.cs │ └── Exchanges │ ├── ExchangeSnippets.cs │ ├── Info │ ├── AssetDetails.cs │ ├── Assets.cs │ ├── AssetsMeta.cs │ ├── ExchangeDetails.cs │ ├── Exchanges.cs │ ├── ExchangesMeta.cs │ ├── ExchangesSupportingAsset.cs │ ├── ExchangesSupportingPairs.cs │ ├── SymbolDetails.cs │ ├── Symbols.cs │ └── SymbolsInExchange.cs │ ├── Ohlcv │ ├── HistoricalOhlcv.cs │ ├── HistoricalOhlcvByAssetAndExchange.cs │ ├── HistoricalOhlcvByExchange.cs │ ├── LatestOhlcv.cs │ ├── LatestOhlcvByAssetAndExchange.cs │ ├── LatestOhlcvByExchange.cs │ └── Periods.cs │ ├── OrderBook │ └── OrderBook.cs │ ├── Rates │ ├── ExchangeRate.cs │ ├── ExchangeRateInExchange.cs │ ├── ExchangeRates.cs │ └── ExchangeRatesInExchange.cs │ └── Trades │ ├── HistoricalTrades.cs │ ├── LatestSymbolTrades.cs │ └── LatestTrades.cs ├── DemoApplication ├── App.config ├── BaseCollectionProvider.cs ├── DataProviders │ ├── AllCurrentRatesByExchangeCollectionProvider.cs │ ├── AllCurrentRatesCollectionProvider.cs │ ├── AssetsCollectionProvider.cs │ ├── ExchangesByAssetsCollectionProvider.cs │ ├── ExchangesByPairCollectionProvider.cs │ ├── ExchangesCollectionProvider.cs │ ├── HistoricalTradesByAssetPairCollectionProvider.cs │ ├── HistoricalTradesByBaseAssetCollectionProvider.cs │ ├── HistoricalTradesByExchangeAssetPairCollectionProvider.cs │ ├── HistoricalTradesByExchangeCollectionProvider.cs │ ├── HistoricalTradesBySymbolCollectionProvider.cs │ ├── LatestDataByAssetPairCollectionProvider.cs │ ├── LatestDataByBaseAssetCollectionProvider.cs │ ├── LatestDataByExchangeAssetPairCollectionProvider.cs │ ├── LatestDataByExchangeCollectionProvider.cs │ ├── LatestDataBySymbolCollectionProvider.cs │ ├── LatestDataCollectionProvider.cs │ ├── MetaAssetsCollectionProvider.cs │ ├── MetaExchangesCollectionProvider.cs │ ├── OhlcvHistoricalDataByAssetAndExchangeCollectionProvider.cs │ ├── OhlcvHistoricalDataByExchangeCollectionProvider.cs │ ├── OhlcvHistoricalDataBySymbolCollectionProvider.cs │ ├── SymbolsCollectionProvider.cs │ └── SymbolsInExchangeCollectionProvider.cs ├── DemoApplication.csproj ├── Form1.Designer.cs ├── Form1.cs ├── Form1.resx ├── ICollectionProvider.cs ├── Program.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings └── packages.config ├── LICENSE.txt └── README.md /CryptoApisLibrary.Tests/Blockchains/Addresses/AddressTransactions/BchMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Addresses.AddressTransactions 5 | { 6 | [TestClass] 7 | public class BchMain : BaseBtcSimilarCoin 8 | { 9 | protected override string Address { get; } = Features.CorrectAddress.BchMainNet; 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BchMainNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Addresses/AddressTransactions/BchTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Addresses.AddressTransactions 5 | { 6 | [TestClass] 7 | public class BchTest : BaseBtcSimilarCoin 8 | { 9 | protected override string Address { get; } = Features.CorrectAddress.BchTestNet; 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BchTestNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Addresses/AddressTransactions/BtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Addresses.AddressTransactions 5 | { 6 | [TestClass] 7 | public class BtcMain : BaseBtcSimilarCoin 8 | { 9 | protected override string Address { get; } = Features.CorrectAddress.BtcMainNet; 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BtcMainNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Addresses/AddressTransactions/BtcTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Addresses.AddressTransactions 5 | { 6 | [TestClass] 7 | public class BtcTest : BaseBtcSimilarCoin 8 | { 9 | protected override string Address { get; } = Features.CorrectAddress.BtcTestNet; 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BtcTestNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Addresses/AddressTransactions/DashMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Addresses.AddressTransactions 5 | { 6 | [TestClass] 7 | public class DashMain : BaseBtcSimilarCoin 8 | { 9 | protected override string Address { get; } = Features.CorrectAddress.DashMainNet; 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DashMainNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Addresses/AddressTransactions/DashTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Addresses.AddressTransactions 5 | { 6 | [TestClass] 7 | public class DashTest : BaseBtcSimilarCoin 8 | { 9 | protected override string Address { get; } = Features.CorrectAddress.DashTestNet; 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DashTestNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Addresses/AddressTransactions/DogeMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Addresses.AddressTransactions 5 | { 6 | [TestClass] 7 | public class DogeMain : BaseBtcSimilarCoin 8 | { 9 | protected override string Address { get; } = Features.CorrectAddress.DogeMainNet; 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DogeMainNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Addresses/AddressTransactions/DogeTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Addresses.AddressTransactions 5 | { 6 | [TestClass] 7 | public class DogeTest : BaseBtcSimilarCoin 8 | { 9 | protected override string Address { get; } = Features.CorrectAddress.DogeTestNet; 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DogeTestNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Addresses/AddressTransactions/EtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Addresses.AddressTransactions 5 | { 6 | [TestClass] 7 | public class EtcMain : BaseEthSimilarCoin 8 | { 9 | protected override string Address { get; } = Features.CorrectAddress.EtcMainNet; 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMainNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Addresses/AddressTransactions/EtcMorden.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Addresses.AddressTransactions 5 | { 6 | [TestClass] 7 | public class EtcMorden : BaseEthSimilarCoin 8 | { 9 | protected override string Address { get; } = Features.CorrectAddress.EtcMorden; 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMorden; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Addresses/AddressTransactions/EthMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Addresses.AddressTransactions 5 | { 6 | [TestClass] 7 | public class EthMain : BaseEthSimilarCoin 8 | { 9 | protected override string Address { get; } = Features.CorrectAddress.EthMainNet; 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthMainNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Addresses/AddressTransactions/EthRinkeby.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Addresses.AddressTransactions 5 | { 6 | [TestClass] 7 | public class EthRinkeby : BaseEthSimilarCoin 8 | { 9 | protected override string Address { get; } = Features.CorrectAddress.EthRinkenby; 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRinkeby; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Addresses/AddressTransactions/EthRopsten.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Addresses.AddressTransactions 5 | { 6 | [TestClass] 7 | public class EthRopsten : BaseEthSimilarCoin 8 | { 9 | protected override string Address { get; } = Features.CorrectAddress.EthRopsten; 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRopsten; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Addresses/AddressTransactions/LtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Addresses.AddressTransactions 5 | { 6 | [TestClass] 7 | public class LtcMain : BaseBtcSimilarCoin 8 | { 9 | protected override string Address { get; } = Features.CorrectAddress.LtcMainNet; 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.LtcMainNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Addresses/AddressTransactions/LtcTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Addresses.AddressTransactions 5 | { 6 | [TestClass] 7 | public class LtcTest : BaseBtcSimilarCoin 8 | { 9 | protected override string Address { get; } = Features.CorrectAddress.LtcTestNet; 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.LtcTestNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Addresses/MultisignatureAddress/BchMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Addresses.MultisignatureAddress 5 | { 6 | [TestClass] 7 | public class BchMain : BaseBtcSimilarCoin 8 | { 9 | protected override string Address { get; } = Features.CorrectAddress.BchMainNet; 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BchMainNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Addresses/MultisignatureAddress/BchTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Addresses.MultisignatureAddress 5 | { 6 | [TestClass] 7 | public class BchTest : BaseBtcSimilarCoin 8 | { 9 | protected override string Address { get; } = Features.CorrectAddress.BchTestNet; 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BchTestNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Addresses/MultisignatureAddress/BtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Addresses.MultisignatureAddress 5 | { 6 | [TestClass] 7 | public class BtcMain : BaseBtcSimilarCoin 8 | { 9 | protected override string Address { get; } = Features.CorrectAddress.BtcMainNet; 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BtcMainNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Addresses/MultisignatureAddress/BtcTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Addresses.MultisignatureAddress 5 | { 6 | [TestClass] 7 | public class BtcTest : BaseBtcSimilarCoin 8 | { 9 | protected override string Address { get; } = Features.CorrectAddress.BtcTestNet; 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BtcTestNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Addresses/MultisignatureAddress/DashMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Addresses.MultisignatureAddress 5 | { 6 | [TestClass] 7 | public class DashMain : BaseBtcSimilarCoin 8 | { 9 | protected override string Address { get; } = Features.CorrectAddress.DashMainNet; 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DashMainNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Addresses/MultisignatureAddress/DashTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Addresses.MultisignatureAddress 5 | { 6 | [TestClass] 7 | public class DashTest : BaseBtcSimilarCoin 8 | { 9 | protected override string Address { get; } = Features.CorrectAddress.DashTestNet; 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DashTestNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Addresses/MultisignatureAddress/DogeMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Addresses.MultisignatureAddress 5 | { 6 | [TestClass] 7 | public class DogeMain : BaseBtcSimilarCoin 8 | { 9 | protected override string Address { get; } = Features.CorrectAddress.DogeMainNet; 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DogeMainNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Addresses/MultisignatureAddress/DogeTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Addresses.MultisignatureAddress 5 | { 6 | [TestClass] 7 | public class DogeTest : BaseBtcSimilarCoin 8 | { 9 | protected override string Address { get; } = Features.CorrectAddress.DogeTestNet; 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DogeTestNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Addresses/MultisignatureAddress/LtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Addresses.MultisignatureAddress 5 | { 6 | [TestClass] 7 | public class LtcMain : BaseBtcSimilarCoin 8 | { 9 | protected override string Address { get; } = Features.CorrectAddress.LtcMainNet; 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.LtcMainNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Addresses/MultisignatureAddress/LtcTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Addresses.MultisignatureAddress 5 | { 6 | [TestClass] 7 | public class LtcTest : BaseBtcSimilarCoin 8 | { 9 | protected override string Address { get; } = Features.CorrectAddress.LtcTestNet; 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.LtcTestNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Tokens/GetTokens/EthMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Tokens.GetTokens 5 | { 6 | [TestClass] 7 | public class EthMain : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthMainNet; 10 | protected override string Address { get; } = Features.CorrectAddress.EthMainNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Tokens/GetTokens/EthRinkeby.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Tokens.GetTokens 5 | { 6 | [TestClass] 7 | public class EthRinkeby : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRinkeby; 10 | protected override string Address { get; } = Features.CorrectAddress.EthRinkenby; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Tokens/GetTokens/EthRopsten.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Tokens.GetTokens 5 | { 6 | [TestClass] 7 | public class EthRopsten : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRopsten; 10 | protected override string Address { get; } = Features.CorrectAddress.EthRopsten; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Tokens/GetTransactions/EthMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Tokens.GetTransactions 5 | { 6 | [TestClass] 7 | public class EthMain : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthMainNet; 10 | protected override string Address { get; } = Features.CorrectAddress.EthMainNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Tokens/GetTransactions/EthRinkeby.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Tokens.GetTransactions 5 | { 6 | [TestClass] 7 | public class EthRinkeby : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRinkeby; 10 | protected override string Address { get; } = Features.CorrectAddress.EthRinkenby; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Tokens/GetTransactions/EthRopsten.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Tokens.GetTransactions 5 | { 6 | [TestClass] 7 | public class EthRopsten : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRopsten; 10 | protected override string Address { get; } = Features.CorrectAddress.EthRopsten; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/CreateTransactionPassword/EtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.CreateTransactionPassword 5 | { 6 | //[Ignore] // todo: temporarily ignored 7 | [TestClass] 8 | public class EtcMain : BaseEthSimilarCoin 9 | { 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMainNet; 11 | protected override string FromAddress { get; } = Features.CorrectAddress.EtcMainNet; 12 | protected override string ToAddress { get; } = Features.CorrectAddress2.EtcMainNet; 13 | protected override double Value { get; } = 0.12; 14 | } 15 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/CreateTransactionPassword/EtcMorden.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.CreateTransactionPassword 5 | { 6 | // [Ignore] // todo: temporarily ignored 7 | [TestClass] 8 | public class EtcMorden : BaseEthSimilarCoin 9 | { 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMorden; 11 | protected override string FromAddress { get; } = Features.CorrectAddress.EtcMorden; 12 | protected override string ToAddress { get; } = Features.CorrectAddress2.EtcMorden; 13 | protected override double Value { get; } = 0.12; 14 | } 15 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/CreateTransactionPassword/EthMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.CreateTransactionPassword 5 | { 6 | //[Ignore] // todo: temporarily ignored 7 | [TestClass] 8 | public class EthMain : BaseEthSimilarCoin 9 | { 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthMainNet; 11 | protected override string FromAddress { get; } = Features.CorrectAddress.EthMainNet; 12 | protected override string ToAddress { get; } = Features.CorrectAddress2.EthMainNet; 13 | protected override double Value { get; } = 0.12; 14 | } 15 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/CreateTransactionPassword/EthRinkeby.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.CreateTransactionPassword 5 | { 6 | //[Ignore] // todo: temporarily ignored 7 | [TestClass] 8 | public class EthRinkeby : BaseEthSimilarCoin 9 | { 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRinkeby; 11 | protected override string FromAddress { get; } = Features.CorrectAddress.EthRinkenby; 12 | protected override string ToAddress { get; } = Features.CorrectAddress2.EthRinkenby; 13 | protected override double Value { get; } = 0.12; 14 | } 15 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/CreateTransactionPassword/EthRopsten.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.CreateTransactionPassword 5 | { 6 | //[Ignore] // todo: temporarily ignored 7 | [TestClass] 8 | public class EthRopsten : BaseEthSimilarCoin 9 | { 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRopsten; 11 | protected override string FromAddress { get; } = Features.CorrectAddress.EthRopsten; 12 | protected override string ToAddress { get; } = Features.CorrectAddress2.EthRopsten; 13 | protected override double Value { get; } = 0.12; 14 | } 15 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/CreateTransactionPasswordWithGas/EtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.CreateTransactionPasswordWithGas 5 | { 6 | [Ignore] // todo: temporarily ignored 7 | [TestClass] 8 | public class EtcMain : BaseEthSimilarCoin 9 | { 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMainNet; 11 | protected override string FromAddress { get; } = Features.CorrectAddress.EtcMainNet; 12 | protected override string ToAddress { get; } = Features.CorrectAddress2.EtcMainNet; 13 | protected override double Value { get; } = 0.12; 14 | } 15 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/CreateTransactionPasswordWithGas/EtcMorden.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.CreateTransactionPasswordWithGas 5 | { 6 | [Ignore] // todo: temporarily ignored 7 | [TestClass] 8 | public class EtcMorden : BaseEthSimilarCoin 9 | { 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMorden; 11 | protected override string FromAddress { get; } = Features.CorrectAddress.EtcMorden; 12 | protected override string ToAddress { get; } = Features.CorrectAddress2.EtcMorden; 13 | protected override double Value { get; } = 0.12; 14 | } 15 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/CreateTransactionPasswordWithGas/EthMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.CreateTransactionPasswordWithGas 5 | { 6 | [Ignore] // todo: temporarily ignored 7 | [TestClass] 8 | public class EthMain : BaseEthSimilarCoin 9 | { 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthMainNet; 11 | protected override string FromAddress { get; } = Features.CorrectAddress.EthMainNet; 12 | protected override string ToAddress { get; } = Features.CorrectAddress2.EthMainNet; 13 | protected override double Value { get; } = 0.12; 14 | } 15 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/CreateTransactionPasswordWithGas/EthRinkeby.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.CreateTransactionPasswordWithGas 5 | { 6 | [Ignore] // todo: temporarily ignored 7 | [TestClass] 8 | public class EthRinkeby : BaseEthSimilarCoin 9 | { 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRinkeby; 11 | protected override string FromAddress { get; } = Features.CorrectAddress.EthRinkenby; 12 | protected override string ToAddress { get; } = Features.CorrectAddress2.EthRinkenby; 13 | protected override double Value { get; } = 0.12; 14 | } 15 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/CreateTransactionPasswordWithGas/EthRopsten.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.CreateTransactionPasswordWithGas 5 | { 6 | [Ignore] // todo: temporarily ignored 7 | [TestClass] 8 | public class EthRopsten : BaseEthSimilarCoin 9 | { 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRopsten; 11 | protected override string FromAddress { get; } = Features.CorrectAddress.EthRopsten; 12 | protected override string ToAddress { get; } = Features.CorrectAddress2.EthRopsten; 13 | protected override double Value { get; } = 0.12; 14 | } 15 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/CreateTransactionPrivateKey/EtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.CreateTransactionPrivateKey 5 | { 6 | [Ignore] // todo: temporarily ignored 7 | [TestClass] 8 | public class EtcMain : BaseEthSimilarCoin 9 | { 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMainNet; 11 | protected override string FromAddress { get; } = Features.CorrectAddress.EtcMainNet; 12 | protected override string ToAddress { get; } = Features.CorrectAddress2.EtcMainNet; 13 | protected override double Value { get; } = 0.12; 14 | } 15 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/CreateTransactionPrivateKey/EtcMorden.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.CreateTransactionPrivateKey 5 | { 6 | [Ignore] // todo: temporarily ignored 7 | [TestClass] 8 | public class EtcMorden : BaseEthSimilarCoin 9 | { 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMorden; 11 | protected override string FromAddress { get; } = Features.CorrectAddress.EtcMorden; 12 | protected override string ToAddress { get; } = Features.CorrectAddress2.EtcMorden; 13 | protected override double Value { get; } = 0.12; 14 | } 15 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/CreateTransactionPrivateKey/EthMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.CreateTransactionPrivateKey 5 | { 6 | [Ignore] // todo: temporarily ignored 7 | [TestClass] 8 | public class EthMain : BaseEthSimilarCoin 9 | { 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthMainNet; 11 | protected override string FromAddress { get; } = Features.CorrectAddress.EthMainNet; 12 | protected override string ToAddress { get; } = Features.CorrectAddress2.EthMainNet; 13 | protected override double Value { get; } = 0.12; 14 | } 15 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/CreateTransactionPrivateKey/EthRinkeby.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.CreateTransactionPrivateKey 5 | { 6 | [Ignore] // todo: temporarily ignored 7 | [TestClass] 8 | public class EthRinkeby : BaseEthSimilarCoin 9 | { 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRinkeby; 11 | protected override string FromAddress { get; } = Features.CorrectAddress.EthRinkenby; 12 | protected override string ToAddress { get; } = Features.CorrectAddress2.EthRinkenby; 13 | protected override double Value { get; } = 0.12; 14 | } 15 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/CreateTransactionPrivateKey/EthRopsten.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.CreateTransactionPrivateKey 5 | { 6 | [Ignore] // todo: temporarily ignored 7 | [TestClass] 8 | public class EthRopsten : BaseEthSimilarCoin 9 | { 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRopsten; 11 | protected override string FromAddress { get; } = Features.CorrectAddress.EthRopsten; 12 | protected override string ToAddress { get; } = Features.CorrectAddress2.EthRopsten; 13 | protected override double Value { get; } = 0.12; 14 | } 15 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/CreateTransactionPrivateKeyWithGas/EtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.CreateTransactionPrivateKeyWithGas 5 | { 6 | [TestClass] 7 | public class EtcMain : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMainNet; 10 | protected override string FromAddress { get; } = Features.CorrectAddress.EtcMainNet; 11 | protected override string ToAddress { get; } = Features.CorrectAddress2.EtcMainNet; 12 | protected override double Value { get; } = 0.12; 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/CreateTransactionPrivateKeyWithGas/EtcMorden.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.CreateTransactionPrivateKeyWithGas 5 | { 6 | [TestClass] 7 | public class EtcMorden : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMorden; 10 | protected override string FromAddress { get; } = Features.CorrectAddress.EtcMorden; 11 | protected override string ToAddress { get; } = Features.CorrectAddress2.EtcMorden; 12 | protected override double Value { get; } = 0.12; 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/CreateTransactionPrivateKeyWithGas/EthMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.CreateTransactionPrivateKeyWithGas 5 | { 6 | [TestClass] 7 | public class EthMain : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthMainNet; 10 | protected override string FromAddress { get; } = Features.CorrectAddress.EthMainNet; 11 | protected override string ToAddress { get; } = Features.CorrectAddress2.EthMainNet; 12 | protected override double Value { get; } = 0.12; 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/CreateTransactionPrivateKeyWithGas/EthRinkeby.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.CreateTransactionPrivateKeyWithGas 5 | { 6 | [TestClass] 7 | public class EthRinkeby : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRinkeby; 10 | protected override string FromAddress { get; } = Features.CorrectAddress.EthRinkenby; 11 | protected override string ToAddress { get; } = Features.CorrectAddress2.EthRinkenby; 12 | protected override double Value { get; } = 0.12; 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/CreateTransactionPrivateKeyWithGas/EthRopsten.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.CreateTransactionPrivateKeyWithGas 5 | { 6 | [TestClass] 7 | public class EthRopsten : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRopsten; 10 | protected override string FromAddress { get; } = Features.CorrectAddress.EthRopsten; 11 | protected override string ToAddress { get; } = Features.CorrectAddress2.EthRopsten; 12 | protected override double Value { get; } = 0.12; 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/DecodeTransaction/BchTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.DecodeTransaction 5 | { 6 | [Ignore] // todo: temporarily ignored 7 | [TestClass] 8 | public class BchTest : BaseBtcSimilarCoin 9 | { 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BchTestNet; 11 | protected override string HexEncodedInfo { get; } = ""; // todo: set corrected value 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/DecodeTransaction/BtcTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.DecodeTransaction 5 | { 6 | [Ignore] // todo: temporarily ignored 7 | [TestClass] 8 | public class BtcTest : BaseBtcSimilarCoin 9 | { 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BtcTestNet; 11 | protected override string HexEncodedInfo { get; } = ""; // todo: set corrected value 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/DecodeTransaction/DashMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.DecodeTransaction 5 | { 6 | [TestClass] 7 | public class DashMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DashMainNet; 10 | 11 | protected override string HexEncodedInfo { get; } = 12 | "02000000012dbde4adf0ce369cbf98ea01be40b1c927ae59b7fc29a8a782fb7aedafcab9d30100000000ffffffff0220f4027f000000001976a9140b974dc2170aaf6759800466b93ecb9305c2924888ac16507702000000001976a91468a3b32fd54f6998f92d155cfb23b662acc4bb5288ac00000000" 13 | ; 14 | } 15 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/DecodeTransaction/DashTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.DecodeTransaction 5 | { 6 | [Ignore] // todo: temporarily ignored 7 | [TestClass] 8 | public class DashTest : BaseBtcSimilarCoin 9 | { 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DashTestNet; 11 | protected override string HexEncodedInfo { get; } = ""; // todo: set corrected value 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/DecodeTransaction/DogeTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.DecodeTransaction 5 | { 6 | [Ignore] // todo: temporarily ignored 7 | [TestClass] 8 | public class DogeTest : BaseBtcSimilarCoin 9 | { 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DogeTestNet; 11 | protected override string HexEncodedInfo { get; } = ""; // todo: set corrected value 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/DecodeTransaction/LtcTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.DecodeTransaction 5 | { 6 | [Ignore] // todo: temporarily ignored 7 | [TestClass] 8 | public class LtcTest : BaseBtcSimilarCoin 9 | { 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.LtcTestNet; 11 | protected override string HexEncodedInfo { get; } = ""; // todo: set corrected value 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfoByBlockHashAndTransactionIndex/EtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfoByBlockHashAndTransactionIndex 5 | { 6 | [TestClass] 7 | public class EtcMain : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMainNet; 10 | protected override string BlockHash { get; } = Features.CorrectBlockHash.EtcMainNet; 11 | protected override int TransactionIndex { get; } = 2; 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfoByBlockHashAndTransactionIndex/EtcMorden.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfoByBlockHashAndTransactionIndex 5 | { 6 | [TestClass] 7 | public class EtcMorden : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMorden; 10 | protected override string BlockHash { get; } = Features.CorrectBlockHash.EtcMorden; 11 | protected override int TransactionIndex { get; } = 1; 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfoByBlockHashAndTransactionIndex/EthMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfoByBlockHashAndTransactionIndex 5 | { 6 | [TestClass] 7 | public class EthMain : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthMainNet; 10 | protected override string BlockHash { get; } = Features.CorrectBlockHash.EthMainNet; 11 | protected override int TransactionIndex { get; } = 79; 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfoByBlockHashAndTransactionIndex/EthRinkeby.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfoByBlockHashAndTransactionIndex 5 | { 6 | [TestClass] 7 | public class EthRinkeby : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRinkeby; 10 | protected override string BlockHash { get; } = Features.CorrectBlockHash.EthRinkenby; 11 | protected override int TransactionIndex { get; } = 1; 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfoByBlockHashAndTransactionIndex/EthRopsten.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfoByBlockHashAndTransactionIndex 5 | { 6 | [TestClass] 7 | public class EthRopsten : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRopsten; 10 | protected override string BlockHash { get; } = Features.CorrectBlockHash.EthRopsten; 11 | protected override int TransactionIndex { get; } = 3; 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfoByBlockHeightAndTransactionIndex/EtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfoByBlockHeightAndTransactionIndex 5 | { 6 | [TestClass] 7 | public class EtcMain : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMainNet; 10 | protected override int BlockHeight { get; } = Features.CorrectBlockHeight.EtcMainNet; 11 | protected override int TransactionIndex { get; } = 2; 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfoByBlockHeightAndTransactionIndex/EtcMorden.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfoByBlockHeightAndTransactionIndex 5 | { 6 | [TestClass] 7 | public class EtcMorden : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMorden; 10 | protected override int BlockHeight { get; } = Features.CorrectBlockHeight.EtcMorden; 11 | protected override int TransactionIndex { get; } = 3; 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfoByBlockHeightAndTransactionIndex/EthMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfoByBlockHeightAndTransactionIndex 5 | { 6 | [TestClass] 7 | public class EthMain : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthMainNet; 10 | protected override int BlockHeight { get; } = Features.CorrectBlockHeight.EthMainNet; 11 | protected override int TransactionIndex { get; } = 79; 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfoByBlockHeightAndTransactionIndex/EthRinkeby.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfoByBlockHeightAndTransactionIndex 5 | { 6 | [TestClass] 7 | public class EthRinkeby : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRinkeby; 10 | protected override int BlockHeight { get; } = Features.CorrectBlockHeight.EthRinkenby; 11 | protected override int TransactionIndex { get; } = 1; 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfoByBlockHeightAndTransactionIndex/EthRopsten.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfoByBlockHeightAndTransactionIndex 5 | { 6 | [TestClass] 7 | public class EthRopsten : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRopsten; 10 | protected override int BlockHeight { get; } = Features.CorrectBlockHeight.EthRopsten; 11 | protected override int TransactionIndex { get; } = 3; 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfoByTransactionId/BchMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfoByTransactionId 5 | { 6 | [TestClass] 7 | public class BchMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BchMainNet; 10 | 11 | protected override string TransactionId { get; } = Features.CorrectTransactionHash.BchMainNet; 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfoByTransactionId/BchTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfoByTransactionId 5 | { 6 | [TestClass] 7 | public class BchTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BchTestNet; 10 | protected override string TransactionId { get; } = Features.CorrectTransactionHash.BchTestNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfoByTransactionId/BtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfoByTransactionId 5 | { 6 | [TestClass] 7 | public class BtcMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BtcMainNet; 10 | protected override string TransactionId { get; } = Features.CorrectTransactionHash.BtcMainNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfoByTransactionId/BtcTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfoByTransactionId 5 | { 6 | [TestClass] 7 | public class BtcTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BtcTestNet; 10 | protected override string TransactionId { get; } = Features.CorrectTransactionHash.BtcTestNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfoByTransactionId/DashMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfoByTransactionId 5 | { 6 | [TestClass] 7 | public class DashMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DashMainNet; 10 | protected override string TransactionId { get; } = Features.CorrectTransactionHash.DashMainNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfoByTransactionId/DashTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfoByTransactionId 5 | { 6 | [TestClass] 7 | public class DashTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DashTestNet; 10 | protected override string TransactionId { get; } = Features.CorrectTransactionHash.DashTestNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfoByTransactionId/DogeMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfoByTransactionId 5 | { 6 | [TestClass] 7 | public class DogeMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DogeMainNet; 10 | protected override string TransactionId { get; } = Features.CorrectTransactionHash.DogeMainNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfoByTransactionId/DogeTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfoByTransactionId 5 | { 6 | [TestClass] 7 | public class DogeTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DogeTestNet; 10 | protected override string TransactionId { get; } = Features.CorrectTransactionHash.DogeTestNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfoByTransactionId/EtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfoByTransactionId 5 | { 6 | [TestClass] 7 | public class EtcMain : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMainNet; 10 | 11 | protected override string TransactionHash { get; } = Features.CorrectTransactionHash.EtcMainNet; 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfoByTransactionId/EtcMorden.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfoByTransactionId 5 | { 6 | [TestClass] 7 | public class EtcMorden : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMorden; 10 | 11 | protected override string TransactionHash { get; } = Features.CorrectTransactionHash.EtcMorden; 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfoByTransactionId/EthMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfoByTransactionId 5 | { 6 | [TestClass] 7 | public class EthMain : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthMainNet; 10 | protected override string TransactionHash { get; } = Features.CorrectTransactionHash.EthMainNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfoByTransactionId/EthRinkeby.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfoByTransactionId 5 | { 6 | [TestClass] 7 | public class EthRinkeby : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRinkeby; 10 | protected override string TransactionHash { get; } = Features.CorrectTransactionHash.EthRinkenby; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfoByTransactionId/EthRopsten.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfoByTransactionId 5 | { 6 | [TestClass] 7 | public class EthRopsten : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRopsten; 10 | protected override string TransactionHash { get; } = Features.CorrectTransactionHash.EthRopsten; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfoByTransactionId/LtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfoByTransactionId 5 | { 6 | [TestClass] 7 | public class LtcMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.LtcMainNet; 10 | protected override string TransactionId { get; } = Features.CorrectTransactionHash.LtcMainNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfoByTransactionId/LtcTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfoByTransactionId 5 | { 6 | [TestClass] 7 | public class LtcTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.LtcTestNet; 10 | protected override string TransactionId { get; } = Features.CorrectTransactionHash.LtcTestNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfosByBlockHash/BchMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfosByBlockHash 5 | { 6 | [TestClass] 7 | public class BchMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BchMainNet; 10 | 11 | protected override string BlockHash { get; } = Features.CorrectBlockHash.BchMainNet; 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfosByBlockHash/BchTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfosByBlockHash 5 | { 6 | [TestClass] 7 | public class BchTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BchTestNet; 10 | protected override string BlockHash { get; } = Features.CorrectBlockHash.BchTestnet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfosByBlockHash/BtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfosByBlockHash 5 | { 6 | [TestClass] 7 | public class BtcMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BtcMainNet; 10 | protected override string BlockHash { get; } = Features.CorrectBlockHash.BtcMainNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfosByBlockHash/BtcTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfosByBlockHash 5 | { 6 | [TestClass] 7 | public class BtcTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BtcTestNet; 10 | protected override string BlockHash { get; } = Features.CorrectBlockHash.BtcTestNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfosByBlockHash/DashMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfosByBlockHash 5 | { 6 | [TestClass] 7 | public class DashMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DashMainNet; 10 | protected override string BlockHash { get; } = Features.CorrectBlockHash.DashMainNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfosByBlockHash/DashTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfosByBlockHash 5 | { 6 | [TestClass] 7 | public class DashTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DashTestNet; 10 | protected override string BlockHash { get; } = Features.CorrectBlockHash.DashTestnet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfosByBlockHash/DogeMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfosByBlockHash 5 | { 6 | [TestClass] 7 | public class DogeMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DogeMainNet; 10 | protected override string BlockHash { get; } = Features.CorrectBlockHash.DogeMainNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfosByBlockHash/DogeTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfosByBlockHash 5 | { 6 | [TestClass] 7 | public class DogeTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DogeTestNet; 10 | protected override string BlockHash { get; } = Features.CorrectBlockHash.DogeTestnet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfosByBlockHash/LtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfosByBlockHash 5 | { 6 | [TestClass] 7 | public class LtcMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.LtcMainNet; 10 | protected override string BlockHash { get; } = Features.CorrectBlockHash.LtcMainNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfosByBlockHash/LtcTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfosByBlockHash 5 | { 6 | [TestClass] 7 | public class LtcTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.LtcTestNet; 10 | protected override string BlockHash { get; } = Features.CorrectBlockHash.LtcTestnet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfosByBlockHeight/BchMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfosByBlockHeight 5 | { 6 | [TestClass] 7 | public class BchMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BchMainNet; 10 | protected override int BlockHeight { get; } = 80001; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfosByBlockHeight/BchTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfosByBlockHeight 5 | { 6 | [TestClass] 7 | public class BchTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BchTestNet; 10 | protected override int BlockHeight { get; } = 80001; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfosByBlockHeight/BtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfosByBlockHeight 5 | { 6 | [TestClass] 7 | public class BtcMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BtcMainNet; 10 | protected override int BlockHeight { get; } = 552875; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfosByBlockHeight/BtcTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfosByBlockHeight 5 | { 6 | [TestClass] 7 | public class BtcTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BtcTestNet; 10 | protected override int BlockHeight { get; } = 1513327; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfosByBlockHeight/DashMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfosByBlockHeight 5 | { 6 | [TestClass] 7 | public class DashMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DashMainNet; 10 | protected override int BlockHeight { get; } = 80001; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfosByBlockHeight/DashTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfosByBlockHeight 5 | { 6 | [TestClass] 7 | public class DashTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DashTestNet; 10 | protected override int BlockHeight { get; } = 80001; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfosByBlockHeight/DogeMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfosByBlockHeight 5 | { 6 | [TestClass] 7 | public class DogeMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DogeMainNet; 10 | protected override int BlockHeight { get; } = 80001; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfosByBlockHeight/DogeTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfosByBlockHeight 5 | { 6 | [TestClass] 7 | public class DogeTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DogeTestNet; 10 | protected override int BlockHeight { get; } = 1513327; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfosByBlockHeight/EtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfosByBlockHeight 5 | { 6 | [TestClass] 7 | public class EtcMain : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMainNet; 10 | protected override int BlockHeight { get; } = Features.CorrectBlockHeight.EtcMainNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfosByBlockHeight/EtcMorden.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfosByBlockHeight 5 | { 6 | [TestClass] 7 | public class EtcMorden : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMorden; 10 | protected override int BlockHeight { get; } = Features.CorrectBlockHeight.EtcMorden; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfosByBlockHeight/EthMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfosByBlockHeight 5 | { 6 | [TestClass] 7 | public class EthMain : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthMainNet; 10 | protected override int BlockHeight { get; } = Features.CorrectBlockHeight.EthMainNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfosByBlockHeight/EthRinkeby.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfosByBlockHeight 5 | { 6 | [TestClass] 7 | public class EthRinkeby : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRinkeby; 10 | protected override int BlockHeight { get; } = Features.CorrectBlockHeight.EthRinkenby; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfosByBlockHeight/EthRopsten.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfosByBlockHeight 5 | { 6 | [TestClass] 7 | public class EthRopsten : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRopsten; 10 | protected override int BlockHeight { get; } = Features.CorrectBlockHeight.EthRopsten; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfosByBlockHeight/LtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfosByBlockHeight 5 | { 6 | [TestClass] 7 | public class LtcMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.LtcMainNet; 10 | protected override int BlockHeight { get; } = 1593401; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetInfosByBlockHeight/LtcTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetInfosByBlockHeight 5 | { 6 | [TestClass] 7 | public class LtcTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.LtcTestNet; 10 | protected override int BlockHeight { get; } = 1072866; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetUnconfirmedTransactions/BchMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetUnconfirmedTransactions 5 | { 6 | [TestClass] 7 | public class BchMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BchMainNet; 10 | 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetUnconfirmedTransactions/BchTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetUnconfirmedTransactions 5 | { 6 | [Ignore] 7 | [TestClass] 8 | public class BchTest : BaseBtcSimilarCoin 9 | { 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BchTestNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetUnconfirmedTransactions/BtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetUnconfirmedTransactions 5 | { 6 | [TestClass] 7 | public class BtcMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BtcMainNet; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetUnconfirmedTransactions/BtcTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetUnconfirmedTransactions 5 | { 6 | [TestClass] 7 | public class BtcTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BtcTestNet; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetUnconfirmedTransactions/DashMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetUnconfirmedTransactions 5 | { 6 | [TestClass] 7 | public class DashMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DashMainNet; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetUnconfirmedTransactions/DashTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetUnconfirmedTransactions 5 | { 6 | [Ignore] 7 | [TestClass] 8 | public class DashTest : BaseBtcSimilarCoin 9 | { 10 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DashTestNet; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetUnconfirmedTransactions/DogeMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetUnconfirmedTransactions 5 | { 6 | [TestClass] 7 | public class DogeMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DogeMainNet; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetUnconfirmedTransactions/DogeTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetUnconfirmedTransactions 5 | { 6 | [TestClass] 7 | public class DogeTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DogeTestNet; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetUnconfirmedTransactions/LtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetUnconfirmedTransactions 5 | { 6 | [TestClass] 7 | public class LtcMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.LtcMainNet; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/GetUnconfirmedTransactions/LtcTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.GetUnconfirmedTransactions 5 | { 6 | [TestClass] 7 | public class LtcTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.LtcTestNet; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/LocallySignTransaction/EtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.LocallySignTransaction 5 | { 6 | [TestClass] 7 | public class EtcMain : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMainNet; 10 | protected override string FromAddress { get; } = "0x1c0fa194a9d3b44313dcd849f3c6be6ad270a0a4"; 11 | protected override string ToAddress { get; } = "0x461d05612a9fea4a9ed118dbf21ebb81ef0dac3c"; 12 | protected override double Value { get; } = 1.212; 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/LocallySignTransaction/EtcMorden.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.LocallySignTransaction 5 | { 6 | [TestClass] 7 | public class EtcMorden : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMorden; 10 | protected override string FromAddress { get; } = "0x26588a9301b0428d95e6fc3a5024fce8bec12d51"; 11 | protected override string ToAddress { get; } = "0x91c37bde81ddce4cef1f30528d3c6878e99af338"; 12 | protected override double Value { get; } = 1.212; 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/LocallySignTransaction/EthMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.LocallySignTransaction 5 | { 6 | [TestClass] 7 | public class EthMain : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthMainNet; 10 | protected override string FromAddress { get; } = "0x1b85a43e2e7f52e766ddfdfa2b901c42cb1201be"; 11 | protected override string ToAddress { get; } = "0x0cb1883c01377f45ee5d7448a32b5ac1709afc11"; 12 | protected override double Value { get; } = 1.212; 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/LocallySignTransaction/EthRinkeby.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.LocallySignTransaction 5 | { 6 | [TestClass] 7 | public class EthRinkeby : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRinkeby; 10 | protected override string FromAddress { get; } = "0x1b85a43e2e7f52e766ddfdfa2b901c42cb1201be"; 11 | protected override string ToAddress { get; } = "0x0cb1883c01377f45ee5d7448a32b5ac1709afc11"; 12 | protected override double Value { get; } = 1; 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/LocallySignTransaction/EthRopsten.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.LocallySignTransaction 5 | { 6 | [TestClass] 7 | public class EthRopsten : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRopsten; 10 | protected override string FromAddress { get; } = "0x1b85a43e2e7f52e766ddfdfa2b901c42cb1201be"; 11 | protected override string ToAddress { get; } = "0x0cb1883c01377f45ee5d7448a32b5ac1709afc11"; 12 | protected override double Value { get; } = 1.212; 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/PendingTransactions/BaseEthSimilarCoin.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using CryptoApisLibrary.ResponseTypes.Blockchains; 3 | using Microsoft.VisualStudio.TestTools.UnitTesting; 4 | 5 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.PendingTransactions 6 | { 7 | [TestClass] 8 | public abstract class BaseEthSimilarCoin : BaseTest 9 | { 10 | [TestMethod] 11 | public void GeneralTest() 12 | { 13 | var response = Manager.Blockchains.Transaction.PendingTransactions(NetworkCoin); 14 | AssertNullErrorMessage(response); 15 | } 16 | 17 | protected abstract NetworkCoin NetworkCoin { get; } 18 | } 19 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/PendingTransactions/EtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.PendingTransactions 5 | { 6 | [TestClass] 7 | public class EtcMain : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMainNet; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/PendingTransactions/EtcMorden.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.PendingTransactions 5 | { 6 | [TestClass] 7 | public class EtcMorden : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMorden; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/PendingTransactions/EthMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.PendingTransactions 5 | { 6 | [TestClass] 7 | public class EthMain : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthMainNet; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/PendingTransactions/EthRinkeby.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.PendingTransactions 5 | { 6 | [TestClass] 7 | public class EthRinkeby : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRinkeby; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/PendingTransactions/EthRopsten.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.PendingTransactions 5 | { 6 | [TestClass] 7 | public class EthRopsten : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRopsten; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/PushTransaction/EthMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.PushTransaction 5 | { 6 | [TestClass] 7 | public class EthMain : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthMainNet; 10 | protected override string HexEncodedInfo { get; } = ""; // todo: set corrected value 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/PushTransaction/EthRinkeby.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.PushTransaction 5 | { 6 | [TestClass] 7 | public class EthRinkeby : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRinkeby; 10 | protected override string HexEncodedInfo { get; } = ""; // todo: set corrected value 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/PushTransaction/EthRopsten.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.PushTransaction 5 | { 6 | [TestClass] 7 | public class EthRopsten : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRopsten; 10 | 11 | protected override string HexEncodedInfo { get; } = ""; // todo: set corrected value 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/QueuedTransactions/BaseEthSimilarCoin.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using CryptoApisLibrary.ResponseTypes.Blockchains; 3 | using Microsoft.VisualStudio.TestTools.UnitTesting; 4 | 5 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.QueuedTransactions 6 | { 7 | [TestClass] 8 | public abstract class BaseEthSimilarCoin : BaseTest 9 | { 10 | [TestMethod] 11 | public void GeneralTest() 12 | { 13 | var response = Manager.Blockchains.Transaction.QueuedTransactions(NetworkCoin); 14 | 15 | AssertNullErrorMessage(response); 16 | } 17 | 18 | protected abstract NetworkCoin NetworkCoin { get; } 19 | } 20 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/QueuedTransactions/EtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.QueuedTransactions 5 | { 6 | [TestClass] 7 | public class EtcMain : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMainNet; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/QueuedTransactions/EtcMorden.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.QueuedTransactions 5 | { 6 | [TestClass] 7 | public class EtcMorden : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMorden; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/QueuedTransactions/EthMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.QueuedTransactions 5 | { 6 | [TestClass] 7 | public class EthMain : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthMainNet; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/QueuedTransactions/EthRinkeby.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.QueuedTransactions 5 | { 6 | [TestClass] 7 | public class EthRinkeby : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRinkeby; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/QueuedTransactions/EthRopsten.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.QueuedTransactions 5 | { 6 | [TestClass] 7 | public class EthRopsten : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRopsten; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/SendAllAmountUsingPassword/EtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.SendAllAmountUsingPassword 5 | { 6 | [TestClass] 7 | public class EtcMain : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMainNet; 10 | protected override string FromAddress { get; } = "0x1c0fa194a9d3b44313dcd849f3c6be6ad270a0a4"; 11 | protected override string ToAddress { get; } = "0x461d05612a9fea4a9ed118dbf21ebb81ef0dac3c"; 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/SendAllAmountUsingPassword/EtcMorden.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.SendAllAmountUsingPassword 5 | { 6 | [TestClass] 7 | public class EtcMorden : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMorden; 10 | protected override string FromAddress { get; } = "0x26588a9301b0428d95e6fc3a5024fce8bec12d51"; 11 | protected override string ToAddress { get; } = "0x91c37bde81ddce4cef1f30528d3c6878e99af338"; 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/SendAllAmountUsingPassword/EthMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.SendAllAmountUsingPassword 5 | { 6 | [TestClass] 7 | public class EthMain : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthMainNet; 10 | protected override string FromAddress { get; } = "0xc438d912235ff5facc22c502e5bd6dc1ae14a7ff"; 11 | protected override string ToAddress { get; } = "0x0cb1883c01377f45ee5d7448a32b5ac1709afc11"; 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/SendAllAmountUsingPassword/EthRinkeby.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.SendAllAmountUsingPassword 5 | { 6 | [TestClass] 7 | public class EthRinkeby : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRinkeby; 10 | protected override string FromAddress { get; } = "0xc438d912235ff5facc22c502e5bd6dc1ae14a7ff"; 11 | protected override string ToAddress { get; } = "0x0cb1883c01377f45ee5d7448a32b5ac1709afc11"; 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/SendAllAmountUsingPassword/EthRopsten.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.SendAllAmountUsingPassword 5 | { 6 | [TestClass] 7 | public class EthRopsten : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRopsten; 10 | protected override string FromAddress { get; } = "0xc438d912235ff5facc22c502e5bd6dc1ae14a7ff"; 11 | protected override string ToAddress { get; } = "0x0cb1883c01377f45ee5d7448a32b5ac1709afc11"; 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/SendAllAmountUsingPrivateKey/EtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.SendAllAmountUsingPrivateKey 5 | { 6 | [TestClass] 7 | public class EtcMain : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMainNet; 10 | protected override string FromAddress { get; } = "0x1c0fa194a9d3b44313dcd849f3c6be6ad270a0a4"; 11 | protected override string ToAddress { get; } = "0x461d05612a9fea4a9ed118dbf21ebb81ef0dac3c"; 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/SendAllAmountUsingPrivateKey/EtcMorden.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.SendAllAmountUsingPrivateKey 5 | { 6 | [TestClass] 7 | public class EtcMorden : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMorden; 10 | protected override string FromAddress { get; } = "0x26588a9301b0428d95e6fc3a5024fce8bec12d51"; 11 | protected override string ToAddress { get; } = "0x91c37bde81ddce4cef1f30528d3c6878e99af338"; 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/SendAllAmountUsingPrivateKey/EthMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.SendAllAmountUsingPrivateKey 5 | { 6 | [TestClass] 7 | public class EthMain : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthMainNet; 10 | protected override string FromAddress { get; } = "0xc438d912235ff5facc22c502e5bd6dc1ae14a7ff"; 11 | protected override string ToAddress { get; } = "0x0cb1883c01377f45ee5d7448a32b5ac1709afc11"; 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/SendAllAmountUsingPrivateKey/EthRinkeby.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.SendAllAmountUsingPrivateKey 5 | { 6 | [TestClass] 7 | public class EthRinkeby : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRinkeby; 10 | protected override string FromAddress { get; } = "0xc438d912235ff5facc22c502e5bd6dc1ae14a7ff"; 11 | protected override string ToAddress { get; } = "0x0cb1883c01377f45ee5d7448a32b5ac1709afc11"; 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/SendAllAmountUsingPrivateKey/EthRopsten.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.SendAllAmountUsingPrivateKey 5 | { 6 | [TestClass] 7 | public class EthRopsten : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRopsten; 10 | protected override string FromAddress { get; } = "0xc438d912235ff5facc22c502e5bd6dc1ae14a7ff"; 11 | protected override string ToAddress { get; } = "0x0cb1883c01377f45ee5d7448a32b5ac1709afc11"; 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/SendTransaction/BchMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.SendTransaction 5 | { 6 | [TestClass] 7 | public class BchMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BchMainNet; 10 | protected override string HexEncodedInfo { get; } = ""; // todo: set corrected value 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/SendTransaction/BchTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.SendTransaction 5 | { 6 | [TestClass] 7 | public class BchTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BchTestNet; 10 | protected override string HexEncodedInfo { get; } = ""; // todo: set corrected value 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/SendTransaction/DashMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.SendTransaction 5 | { 6 | [TestClass] 7 | public class DashMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DashMainNet; 10 | protected override string HexEncodedInfo { get; } = ""; // todo: set corrected value 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/SendTransaction/DashTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.SendTransaction 5 | { 6 | [TestClass] 7 | public class DashTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DashTestNet; 10 | protected override string HexEncodedInfo { get; } = ""; // todo: set corrected value 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/SendTransaction/DogeMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.SendTransaction 5 | { 6 | [TestClass] 7 | public class DogeMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DogeMainNet; 10 | protected override string HexEncodedInfo { get; } = ""; // todo: set corrected value 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/SendTransaction/LtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.SendTransaction 5 | { 6 | [TestClass] 7 | public class LtcMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.LtcMainNet; 10 | protected override string HexEncodedInfo { get; } = ""; // todo: set corrected value 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/SendTransaction/LtcTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.SendTransaction 5 | { 6 | [TestClass] 7 | public class LtcTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.LtcTestNet; 10 | protected override string HexEncodedInfo { get; } = ""; // todo: set corrected value 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/TransactionsFee/BchMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.TransactionsFee 5 | { 6 | [TestClass] 7 | public class BchMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BchMainNet; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/TransactionsFee/BchTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.TransactionsFee 5 | { 6 | [TestClass] 7 | public class BchTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BchTestNet; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/TransactionsFee/BtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.TransactionsFee 5 | { 6 | [TestClass] 7 | public class BtcMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BtcMainNet; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/TransactionsFee/BtcTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.TransactionsFee 5 | { 6 | [TestClass] 7 | public class BtcTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.BtcTestNet; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/TransactionsFee/DashMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.TransactionsFee 5 | { 6 | [TestClass] 7 | public class DashMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DashMainNet; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/TransactionsFee/DashTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.TransactionsFee 5 | { 6 | [TestClass] 7 | public class DashTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DashTestNet; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/TransactionsFee/DogeMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.TransactionsFee 5 | { 6 | [TestClass] 7 | public class DogeMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DogeMainNet; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/TransactionsFee/DogeTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.TransactionsFee 5 | { 6 | [TestClass] 7 | public class DogeTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.DogeTestNet; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/TransactionsFee/EtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.TransactionsFee 5 | { 6 | [TestClass] 7 | public class EtcMain : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMainNet; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/TransactionsFee/EtcMorden.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.TransactionsFee 5 | { 6 | [TestClass] 7 | public class EtcMorden : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EtcMorden; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/TransactionsFee/EthMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.TransactionsFee 5 | { 6 | [TestClass] 7 | public class EthMain : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthMainNet; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/TransactionsFee/EthRinkeby.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.TransactionsFee 5 | { 6 | [TestClass] 7 | public class EthRinkeby : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRinkeby; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/TransactionsFee/EthRopsten.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.TransactionsFee 5 | { 6 | [TestClass] 7 | public class EthRopsten : BaseEthSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.EthRopsten; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/TransactionsFee/LtcMain.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.TransactionsFee 5 | { 6 | [TestClass] 7 | public class LtcMain : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.LtcMainNet; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Blockchains/Transactions/TransactionsFee/LtcTest.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using Microsoft.VisualStudio.TestTools.UnitTesting; 3 | 4 | namespace CryptoApisLibrary.Tests.Blockchains.Transactions.TransactionsFee 5 | { 6 | [TestClass] 7 | public class LtcTest : BaseBtcSimilarCoin 8 | { 9 | protected override NetworkCoin NetworkCoin { get; } = NetworkCoin.LtcTestNet; 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/Exchanges/Ohlcv/Periods.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.VisualStudio.TestTools.UnitTesting; 2 | 3 | namespace CryptoApisLibrary.Tests.Exchanges.Ohlcv 4 | { 5 | [TestClass] 6 | public class Periods : BaseTest 7 | { 8 | [TestMethod] 9 | public void AllCorrect_ShouldPass() 10 | { 11 | var response = Manager.Exchanges.Ohlcv.Periods(); 12 | 13 | AssertNullErrorMessage(response); 14 | Assert.IsNotNull(response.Periods, $"{nameof(response.Periods)} must not be null"); 15 | AssertNotEmptyCollection(nameof(response.Periods), response.Periods); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/SomeFeatures.txt: -------------------------------------------------------------------------------- 1 | BTC. "5b1ea92e584bf50020130612" 2 | USD. "5b1ea92e584bf50020130615" 3 | LTC. "5b1ea92e584bf50020130616" 4 | ETH. "5b755dacd5dd99000b3d92b2" 5 | DASH. "5b1ea92e584bf50020130620" 6 | DOGE. "5b1ea92e584bf50020130626" 7 | BCH. "5b1ea92e584bf5002013061c" 8 | 9 | Bittrex. "5b1ea9d21090c200146f7366" 10 | Binance. "5b1ea9d21090c200146f7362" 11 | Bitstamp. "5b1ea9d21090c200146f7364" 12 | Poloniex. "5b1ea9d21090c200146f7367" 13 | 14 | BTC/LTC. "5bfc325d9c40a100014db900" 15 | BTC/BCH. "5bfc325f9c40a100014db9b0" 16 | USD/BTC. "5bfc325f9c40a100014db9eb" 17 | ETH/LTC. "5bfc325e9c40a100014db98b" -------------------------------------------------------------------------------- /CryptoApisLibrary.Tests/TestMissingApiKey.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.VisualStudio.TestTools.UnitTesting; 2 | 3 | namespace CryptoApisLibrary.Tests 4 | { 5 | [TestClass] 6 | public class TestMissingApiKey : BaseTest 7 | { 8 | protected override string LoadApiKey() 9 | { 10 | return "123"; 11 | } 12 | 13 | [TestMethod] 14 | public void Test() 15 | { 16 | var response = Manager.Exchanges.Info.Exchanges(); 17 | AssertErrorMessage(response, "Invalid or missing API key"); 18 | AssertEmptyCollection(nameof(response.Exchanges), response.Exchanges); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/DataTypes/ExchangeAssets.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crypto-APIs/.NET-Library/5965dc3f9bcb70dae294267b2324bda423b23b4a/CryptoApisLibrary/DataTypes/ExchangeAssets.cs -------------------------------------------------------------------------------- /CryptoApisLibrary/DataTypes/ExchangeRate.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crypto-APIs/.NET-Library/5965dc3f9bcb70dae294267b2324bda423b23b4a/CryptoApisLibrary/DataTypes/ExchangeRate.cs -------------------------------------------------------------------------------- /CryptoApisLibrary/DataTypes/Fee.cs: -------------------------------------------------------------------------------- 1 | namespace CryptoApisLibrary.DataTypes 2 | { 3 | public class Fee 4 | { 5 | public Fee(string address, double value) 6 | { 7 | Address = address; 8 | Value = value; 9 | } 10 | 11 | public Fee(double value) 12 | { 13 | Value = value; 14 | } 15 | 16 | public string Address { get; } 17 | public double Value { get; } 18 | } 19 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/DataTypes/MatchType.cs: -------------------------------------------------------------------------------- 1 | namespace CryptoApisLibrary.DataTypes 2 | { 3 | public enum MatchType 4 | { 5 | Positive, 6 | Negative, 7 | PositiveCorrelationBaseQuote, 8 | PositiveCorrelationQuoteBase, 9 | NegativeCorrelationBaseBase, 10 | NegativeCorrelationQuoteQuote 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/DataTypes/OHLCV.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crypto-APIs/.NET-Library/5965dc3f9bcb70dae294267b2324bda423b23b4a/CryptoApisLibrary/DataTypes/OHLCV.cs -------------------------------------------------------------------------------- /CryptoApisLibrary/DataTypes/PeriodInfo.cs: -------------------------------------------------------------------------------- 1 | namespace CryptoApisLibrary.DataTypes 2 | { 3 | public class PeriodInfo 4 | { 5 | /* 6 | "period": "1sec", 7 | "lengthInSeconds": 1, 8 | "lengthInMonths": null, 9 | "unitCount": 1, 10 | "unitName": "second", 11 | "displayName": "1 Second" 12 | 13 | period Period Identifier used by Crypto APIs 14 | lengthInSeconds Seconds part of period length 15 | lengthInMonths Months part of period length 16 | unitCount Period length in units 17 | unitName Type of time-series used (second/minute/hour/day/year) 18 | displayName Display name of period length 19 | */ 20 | } 21 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/DataTypes/Symbol.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crypto-APIs/.NET-Library/5965dc3f9bcb70dae294267b2324bda423b23b4a/CryptoApisLibrary/DataTypes/Symbol.cs -------------------------------------------------------------------------------- /CryptoApisLibrary/DataTypes/Trade.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crypto-APIs/.NET-Library/5965dc3f9bcb70dae294267b2324bda423b23b4a/CryptoApisLibrary/DataTypes/Trade.cs -------------------------------------------------------------------------------- /CryptoApisLibrary/DataTypes/TradeType.cs: -------------------------------------------------------------------------------- 1 | namespace CryptoApisLibrary.DataTypes 2 | { 3 | public enum TradeType 4 | { 5 | /// 6 | /// Agreement to exchange one asset for another one (e.g. Buy Btc for USD). 7 | /// 8 | Spot, 9 | 10 | /// 11 | /// FX Spot derivative contract where traders agree to trade fx spot at predetermined future time. 12 | /// 13 | Futures, 14 | 15 | /// 16 | /// FX Spot derivative contract where traders agree to trade right to require buy or sell of fx spot at agreed price on exercise date. 17 | /// 18 | Option 19 | } 20 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/DataTypes/TransactionAddress.cs: -------------------------------------------------------------------------------- 1 | namespace CryptoApisLibrary.DataTypes 2 | { 3 | public class TransactionAddress 4 | { 5 | public TransactionAddress(string address, double value) 6 | { 7 | Address = address; 8 | Value = value; 9 | } 10 | 11 | public string Address { get; } 12 | public double Value { get; } 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/DataTypes/Wallet.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | using System.Collections.Generic; 3 | 4 | namespace CryptoApisLibrary.DataTypes 5 | { 6 | public class Wallet 7 | { 8 | [DeserializeAs(Name = "addresses")] 9 | public List Addresses { get; protected set; } = new List(); 10 | 11 | /// 12 | /// Applied only for BCH 13 | /// 14 | [DeserializeAs(Name = "legacy")] 15 | public List LegacyAddresses { get; protected set; } 16 | 17 | [DeserializeAs(Name = "walletName")] 18 | public string Name { get; protected set; } 19 | } 20 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Exceptions/RequestException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CryptoApisLibrary.Exceptions 4 | { 5 | public class RequestException : ApplicationException 6 | { 7 | public RequestException(string errorMessage) : base(errorMessage) 8 | { } 9 | } 10 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Exceptions/UndefineMatchTypeException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CryptoApisLibrary.Exceptions 4 | { 5 | public sealed class UndefineMatchTypeException : InvalidOperationException 6 | { 7 | public UndefineMatchTypeException(string matchTypeAsString) 8 | : base($"\"{matchTypeAsString}\" is undefined match type") 9 | { 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Exceptions/UndefineQuoteTradeDirectionException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CryptoApisLibrary.Exceptions 4 | { 5 | public sealed class UndefineQuoteTradeDirectionException : InvalidOperationException 6 | { 7 | public UndefineQuoteTradeDirectionException(string tradeDirectionAsString) 8 | : base($"\"{tradeDirectionAsString}\" is undefined trade direction") 9 | { 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Exceptions/UndefineTradeDirectionException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CryptoApisLibrary.Exceptions 4 | { 5 | public sealed class UndefineTradeDirectionException : InvalidOperationException 6 | { 7 | public UndefineTradeDirectionException(string tradeDirectionAsString) 8 | : base($"\"{tradeDirectionAsString}\" is undefined trade direction") 9 | { 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Exceptions/UndefineTradeTypeException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CryptoApisLibrary.Exceptions 4 | { 5 | public sealed class UndefineTradeTypeException : InvalidOperationException 6 | { 7 | public UndefineTradeTypeException(string tradeTypeAsString) 8 | : base($"\"{tradeTypeAsString}\" is undefined trade type") 9 | { 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ICryptoManager.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.Modules.Blockchains; 2 | using CryptoApisLibrary.Modules.Exchanges; 3 | 4 | namespace CryptoApisLibrary 5 | { 6 | public interface ICryptoManager 7 | { 8 | ITradeModules Exchanges { get; } 9 | IBlockchainModules Blockchains { get; } 10 | ITradeModules Trade { get; } 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/IResponseRequestLogger.cs: -------------------------------------------------------------------------------- 1 | using RestSharp; 2 | 3 | namespace CryptoApisLibrary 4 | { 5 | public interface IResponseRequestLogger 6 | { 7 | void RegisterRequest(IRestClient client, IRestRequest request); 8 | 9 | void RegisterResponse(IRestResponse response); 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Misc/Consts.cs: -------------------------------------------------------------------------------- 1 | namespace CryptoApisLibrary.Misc 2 | { 3 | internal static class Consts 4 | { 5 | internal const string Url = "https://api.cryptoapis.io"; 6 | internal const string Version = "v1"; 7 | internal const string Blockchain = "bc"; 8 | internal const string OHLCVEndPoint = "ohlcv"; 9 | internal const string TradesPoint = "trades"; 10 | internal const string OrderBook = "order-book"; 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Misc/GetFilenameProvider.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.IO; 3 | using System.Linq; 4 | 5 | namespace CryptoApisLibrary.Misc 6 | { 7 | public class GetFilenameProvider : IFilenameProvider 8 | { 9 | public GetFilenameProvider(string[] possibleFilenames) 10 | { 11 | _possibleFilenames.AddRange(possibleFilenames); 12 | } 13 | 14 | private readonly List _possibleFilenames = new List(); 15 | 16 | public string Filename => _possibleFilenames.FirstOrDefault(File.Exists); 17 | } 18 | 19 | public interface IFilenameProvider 20 | { 21 | string Filename { get; } 22 | } 23 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Misc/Tools.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Globalization; 3 | 4 | namespace CryptoApisLibrary.Misc 5 | { 6 | internal static class Tools 7 | { 8 | public static string ToUnixTimestamp(DateTime dateTime) 9 | { 10 | var unixTimestamp = (int)dateTime.Subtract(new DateTime(1970, 1, 1)).TotalSeconds; 11 | return unixTimestamp.ToString(CultureInfo.InvariantCulture); 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Modules/Blockchains/Addresses/BlockchainAddressModule.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.Misc; 2 | using RestSharp; 3 | 4 | namespace CryptoApisLibrary.Modules.Blockchains.Addresses 5 | { 6 | internal partial class BlockchainAddressModule : BaseModule, IBlockchainAddressModule 7 | { 8 | public BlockchainAddressModule(IRestClient client, CryptoApiRequest request) 9 | : base(client, request) 10 | { 11 | Requests = new Requests(Request); 12 | } 13 | 14 | private Requests Requests { get; } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Modules/Blockchains/Contracts/BlockchainContractModule.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.Misc; 2 | using RestSharp; 3 | 4 | namespace CryptoApisLibrary.Modules.Blockchains.Contracts 5 | { 6 | internal partial class BlockchainContractModule : BaseModule, IBlockchainContractModule 7 | { 8 | public BlockchainContractModule(IRestClient client, CryptoApiRequest request) 9 | : base(client, request) 10 | { 11 | Requests = new Requests(Request); 12 | } 13 | 14 | private Requests Requests { get; } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Modules/Blockchains/Info/BlockchainInfoModule.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.Misc; 2 | using RestSharp; 3 | 4 | namespace CryptoApisLibrary.Modules.Blockchains.Info 5 | { 6 | internal partial class BlockchainInfoModule : BaseModule, IBlockchainInfoModule 7 | { 8 | public BlockchainInfoModule(IRestClient client, CryptoApiRequest request) 9 | : base(client, request) 10 | { 11 | Requests = new Requests(Request); 12 | } 13 | 14 | private Requests Requests { get; } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Modules/Blockchains/PaymentForwardings/BlockchainPaymentForwardingModule.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.Misc; 2 | using RestSharp; 3 | 4 | namespace CryptoApisLibrary.Modules.Blockchains.PaymentForwardings 5 | { 6 | internal partial class BlockchainPaymentForwardingModule : BaseModule, IBlockchainPaymentForwardingModule 7 | { 8 | public BlockchainPaymentForwardingModule(IRestClient client, CryptoApiRequest request) 9 | : base(client, request) 10 | { 11 | Requests = new Requests(Request); 12 | } 13 | 14 | private Requests Requests { get; } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Modules/Blockchains/Tokens/BlockchainTokenModule.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.Misc; 2 | using RestSharp; 3 | 4 | namespace CryptoApisLibrary.Modules.Blockchains.Tokens 5 | { 6 | internal partial class BlockchainTokenModule : BaseModule, IBlockchainTokenModule 7 | { 8 | public BlockchainTokenModule(IRestClient client, CryptoApiRequest request) 9 | : base(client, request) 10 | { 11 | Requests = new Requests(Request); 12 | } 13 | 14 | private Requests Requests { get; } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Modules/Blockchains/Transactions/BlockchainTransactionModule.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.Misc; 2 | using RestSharp; 3 | 4 | namespace CryptoApisLibrary.Modules.Blockchains.Transactions 5 | { 6 | internal partial class BlockchainTransactionModule : BaseModule, IBlockchainTransactionModule 7 | { 8 | public BlockchainTransactionModule(IRestClient client, CryptoApiRequest request) 9 | : base(client, request) 10 | { 11 | Requests = new Requests(Request); 12 | } 13 | 14 | private Requests Requests { get; } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Modules/Blockchains/Wallets/BlockchainWalletModule.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.Misc; 2 | using RestSharp; 3 | 4 | namespace CryptoApisLibrary.Modules.Blockchains.Wallets 5 | { 6 | internal partial class BlockchainWalletModule : BaseModule, IBlockchainWalletModule 7 | { 8 | public BlockchainWalletModule(IRestClient client, CryptoApiRequest request) 9 | : base(client, request) 10 | { 11 | Requests = new Requests(Request); 12 | } 13 | 14 | private Requests Requests { get; } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Modules/Blockchains/WebhookNotifications/BlockchainWebhookNotificationModule.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.Misc; 2 | using RestSharp; 3 | 4 | namespace CryptoApisLibrary.Modules.Blockchains.WebhookNotifications 5 | { 6 | internal partial class BlockchainWebhookNotificationModule : BaseModule, IBlockchainWebhookNotificationModule 7 | { 8 | public BlockchainWebhookNotificationModule(IRestClient client, CryptoApiRequest request) 9 | : base(client, request) 10 | { 11 | Requests = new Requests(Request); 12 | } 13 | 14 | private Requests Requests { get; } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Modules/Exchanges/IExchangeModules.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.Modules.Exchanges.Info; 2 | using CryptoApisLibrary.Modules.Exchanges.Ohlcv; 3 | using CryptoApisLibrary.Modules.Exchanges.OrderBook; 4 | using CryptoApisLibrary.Modules.Exchanges.Rates; 5 | using CryptoApisLibrary.Modules.Exchanges.Trades; 6 | 7 | namespace CryptoApisLibrary.Modules.Exchanges 8 | { 9 | public interface ITradeModules 10 | { 11 | IExchangeInfoModules Info { get; } 12 | IExchangeRatesModules Rates { get; } 13 | IExchangeOhlcvModules Ohlcv { get; } 14 | IExchangeTradesModules Trades { get; } 15 | IExchangeOrderBookModules OrderBook { get; } 16 | } 17 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Modules/Exchanges/Info/ExchangeInfoModules.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.Misc; 2 | using RestSharp; 3 | 4 | namespace CryptoApisLibrary.Modules.Exchanges.Info 5 | { 6 | internal partial class ExchangeInfoModules : BaseModule, IExchangeInfoModules 7 | { 8 | public ExchangeInfoModules(IRestClient client, CryptoApiRequest request) 9 | : base(client, request) 10 | { 11 | Requests = new Requests(Request); 12 | } 13 | 14 | private Requests Requests { get; } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Modules/Exchanges/Ohlcv/ExchangeOhlcvModules.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.Misc; 2 | using RestSharp; 3 | 4 | namespace CryptoApisLibrary.Modules.Exchanges.Ohlcv 5 | { 6 | internal partial class ExchangeOhlcvModules : BaseModule, IExchangeOhlcvModules 7 | { 8 | public ExchangeOhlcvModules(IRestClient client, CryptoApiRequest request) 9 | : base(client, request) 10 | { 11 | Requests = new Requests(Request); 12 | } 13 | 14 | private Requests Requests { get; } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Modules/Exchanges/OrderBook/ExchangeOrderBookModules.Async.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using CryptoApisLibrary.ResponseTypes.Exchanges; 3 | using System.Threading; 4 | using System.Threading.Tasks; 5 | 6 | namespace CryptoApisLibrary.Modules.Exchanges.OrderBook 7 | { 8 | internal partial class ExchangeOrderBookModules 9 | { 10 | public Task GetAsync(CancellationToken cancellationToken, 11 | Exchange exchange, Asset baseAsset, Asset quoteAsset) 12 | { 13 | var request = Requests.OrderBook(exchange, baseAsset, quoteAsset); 14 | return GetAsyncResponse(request, cancellationToken); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Modules/Exchanges/OrderBook/ExchangeOrderBookModules.Sync.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using CryptoApisLibrary.ResponseTypes.Exchanges; 3 | using System.Threading; 4 | 5 | namespace CryptoApisLibrary.Modules.Exchanges.OrderBook 6 | { 7 | internal partial class ExchangeOrderBookModules 8 | { 9 | public OrderBookResponse Get(Exchange exchange, Asset baseAsset, Asset quoteAsset) 10 | { 11 | return GetAsync(CancellationToken.None, exchange, baseAsset, quoteAsset).GetAwaiter().GetResult(); 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Modules/Exchanges/OrderBook/ExchangeOrderBookModules.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.Misc; 2 | using RestSharp; 3 | 4 | namespace CryptoApisLibrary.Modules.Exchanges.OrderBook 5 | { 6 | internal partial class ExchangeOrderBookModules : BaseModule, IExchangeOrderBookModules 7 | { 8 | public ExchangeOrderBookModules(IRestClient client, CryptoApiRequest request) 9 | : base(client, request) 10 | { 11 | Requests = new Requests(Request); 12 | } 13 | 14 | private Requests Requests { get; } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Modules/Exchanges/Rates/ExchangeRatesModules.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.Misc; 2 | using RestSharp; 3 | 4 | namespace CryptoApisLibrary.Modules.Exchanges.Rates 5 | { 6 | internal partial class ExchangeRatesModules : BaseModule, IExchangeRatesModules 7 | { 8 | public ExchangeRatesModules(IRestClient client, CryptoApiRequest request) 9 | : base(client, request) 10 | { 11 | Requests = new Requests(Request); 12 | } 13 | 14 | private Requests Requests { get; } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Modules/Exchanges/Trades/ExchangeTradesModules.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.Misc; 2 | using RestSharp; 3 | 4 | namespace CryptoApisLibrary.Modules.Exchanges.Trades 5 | { 6 | internal partial class ExchangeTradesModules : BaseModule, IExchangeTradesModules 7 | { 8 | public ExchangeTradesModules(IRestClient client, CryptoApiRequest request) 9 | : base(client, request) 10 | { 11 | Requests = new Requests(Request); 12 | } 13 | 14 | private Requests Requests { get; } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Modules/Trade/Accounts/TradeAccountsModules.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.Misc; 2 | using RestSharp; 3 | 4 | namespace CryptoApisLibrary.Modules.Trade.Accounts 5 | { 6 | internal partial class TradeAccountsModules : BaseModule, ITradeAccountsModules 7 | { 8 | public TradeAccountsModules(IRestClient client, CryptoApiRequest request) 9 | : base(client, request) 10 | { 11 | Requests = new Requests(Request); 12 | } 13 | 14 | private Requests Requests { get; } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Modules/Trade/Arbitrage/TradeArbitrageModules.Async.cs: -------------------------------------------------------------------------------- 1 | using System.Threading; 2 | using System.Threading.Tasks; 3 | using CryptoApisLibrary.DataTypes; 4 | using CryptoApisLibrary.ResponseTypes.Exchanges; 5 | 6 | namespace CryptoApisLibrary.Modules.Trade.Arbitrage 7 | { 8 | internal partial class TradeArbitrageModules 9 | { 10 | public Task GetAsync(CancellationToken cancellationToken, 11 | Exchange exchange, Asset baseAsset, Asset quoteAsset) 12 | { 13 | var request = Requests.OrderBook(exchange, baseAsset, quoteAsset); 14 | return GetAsyncResponse(request, cancellationToken); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Modules/Trade/Arbitrage/TradeArbitrageModules.Sync.cs: -------------------------------------------------------------------------------- 1 | using System.Threading; 2 | using CryptoApisLibrary.DataTypes; 3 | using CryptoApisLibrary.ResponseTypes.Exchanges; 4 | 5 | namespace CryptoApisLibrary.Modules.Trade.Arbitrage 6 | { 7 | internal partial class TradeArbitrageModules 8 | { 9 | public OrderBookResponse Get(Exchange exchange, Asset baseAsset, Asset quoteAsset) 10 | { 11 | return GetAsync(CancellationToken.None, exchange, baseAsset, quoteAsset).GetAwaiter().GetResult(); 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Modules/Trade/Arbitrage/TradeArbitrageModules.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.Misc; 2 | using RestSharp; 3 | 4 | namespace CryptoApisLibrary.Modules.Trade.Arbitrage 5 | { 6 | internal partial class TradeArbitrageModules : BaseModule, ITradeArbitrageModules 7 | { 8 | public TradeArbitrageModules(IRestClient client, CryptoApiRequest request) 9 | : base(client, request) 10 | { 11 | Requests = new Requests(Request); 12 | } 13 | 14 | private Requests Requests { get; } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Modules/Trade/ITradeModules.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.Modules.Trade.Accounts; 2 | using CryptoApisLibrary.Modules.Trade.Arbitrage; 3 | using CryptoApisLibrary.Modules.Trade.Private; 4 | 5 | namespace CryptoApisLibrary.Modules.Trade 6 | { 7 | public interface ITradeModules 8 | { 9 | ITradeAccountsModules Accounts { get; } 10 | ITradePrivateModules Private { get; } 11 | ITradeArbitrageModules Arbitrage { get; } 12 | } 13 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/Modules/Trade/Private/TradePrivateModules.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.Misc; 2 | using RestSharp; 3 | 4 | namespace CryptoApisLibrary.Modules.Trade.Private 5 | { 6 | internal partial class TradePrivateModules : BaseModule, ITradePrivateModules 7 | { 8 | public TradePrivateModules(IRestClient client, CryptoApiRequest request) 9 | : base(client, request) 10 | { 11 | Requests = new Requests(Request); 12 | } 13 | 14 | private Requests Requests { get; } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/RequestTypes/AddAddressToWalletRequest.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | using System.Collections.Generic; 3 | 4 | namespace CryptoApisLibrary.RequestTypes 5 | { 6 | internal class AddAddressToWalletRequest 7 | { 8 | public AddAddressToWalletRequest(IEnumerable addresses) 9 | { 10 | Addresses.AddRange(addresses); 11 | } 12 | 13 | [JsonProperty(PropertyName = "addresses")] 14 | public List Addresses { get; } = new List(); 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/RequestTypes/CreateHdWalletRequest.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | 3 | namespace CryptoApisLibrary.RequestTypes 4 | { 5 | internal class CreateHdWalletRequest 6 | { 7 | public CreateHdWalletRequest(string walletName, string password, int addressCount) 8 | { 9 | WalletName = walletName; 10 | Password = password; 11 | AddressCount = addressCount; 12 | } 13 | 14 | [JsonProperty(PropertyName = "walletName")] 15 | public string WalletName { get; } 16 | 17 | [JsonProperty(PropertyName = "password")] 18 | public string Password { get; } 19 | 20 | [JsonProperty(PropertyName = "addressCount")] 21 | public int AddressCount { get; } 22 | } 23 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/RequestTypes/CreateWalletRequest.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | using System.Collections.Generic; 3 | 4 | namespace CryptoApisLibrary.RequestTypes 5 | { 6 | internal class CreateWalletRequest 7 | { 8 | public CreateWalletRequest(string walletName, IEnumerable addresses) 9 | { 10 | WalletName1 = walletName; 11 | Addresses.AddRange(addresses); 12 | } 13 | 14 | [JsonProperty(PropertyName = "walletName")] 15 | public string WalletName1 { get; } 16 | 17 | [JsonProperty(PropertyName = "addresses")] 18 | public List Addresses { get; } = new List(); 19 | } 20 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/RequestTypes/CreateXPubRequest.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | 3 | namespace CryptoApisLibrary.RequestTypes 4 | { 5 | internal class CreateXPubRequest 6 | { 7 | public CreateXPubRequest(string password) 8 | { 9 | Password = password; 10 | } 11 | 12 | [JsonProperty(PropertyName = "password")] 13 | public string Password { get; } 14 | } 15 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/RequestTypes/DecodeTransactionRequest.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | 3 | namespace CryptoApisLibrary.RequestTypes 4 | { 5 | internal class DecodeTransactionRequest 6 | { 7 | public DecodeTransactionRequest(string hexEncodedInfo) 8 | { 9 | HexEncodedInfo = hexEncodedInfo; 10 | } 11 | 12 | [JsonProperty(PropertyName = "hex")] 13 | public string HexEncodedInfo { get; } 14 | } 15 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/RequestTypes/GenerateEthAccountRequest.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | 3 | namespace CryptoApisLibrary.RequestTypes 4 | { 5 | internal class GenerateEthAccountRequest 6 | { 7 | public GenerateEthAccountRequest(string password) 8 | { 9 | Password = password; 10 | } 11 | 12 | [JsonProperty(PropertyName = "password")] 13 | public string Password { get; } 14 | } 15 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/RequestTypes/GenerateHdWalletAddressRequest.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | 3 | namespace CryptoApisLibrary.RequestTypes 4 | { 5 | internal class GenerateHdWalletAddressRequest 6 | { 7 | public GenerateHdWalletAddressRequest(int addressCount, string encryptedPassword) 8 | { 9 | AddressCount = addressCount; 10 | Password = encryptedPassword; 11 | } 12 | 13 | [JsonProperty(PropertyName = "addressCount")] 14 | public int AddressCount { get; } 15 | 16 | [JsonProperty(PropertyName = "password")] 17 | public string Password { get; } 18 | } 19 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/RequestTypes/GetTransactionInfosRequest.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | using System.Collections.Generic; 3 | 4 | namespace CryptoApisLibrary.RequestTypes 5 | { 6 | internal class GetTransactionInfosRequest 7 | { 8 | public GetTransactionInfosRequest(IEnumerable transactionHashes) 9 | { 10 | TransactionHashes.AddRange(transactionHashes); 11 | } 12 | 13 | [JsonProperty(PropertyName = "txs")] 14 | public List TransactionHashes { get; } = new List(); 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/RequestTypes/GetXPubAddressesRequest.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | 3 | namespace CryptoApisLibrary.RequestTypes 4 | { 5 | internal class GetXPubAddressesRequest 6 | { 7 | public GetXPubAddressesRequest(string xpub, int startIndex, int finishIndex) 8 | { 9 | Xpub = xpub; 10 | StartIndex = startIndex; 11 | FinishIndex = finishIndex; 12 | } 13 | 14 | [JsonProperty(PropertyName = "xpub")] 15 | public string Xpub { get; } 16 | 17 | [JsonProperty(PropertyName = "from")] 18 | public int StartIndex { get; } 19 | 20 | [JsonProperty(PropertyName = "to")] 21 | public int FinishIndex { get; } 22 | } 23 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/RequestTypes/PushTransactionRequest.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | 3 | namespace CryptoApisLibrary.RequestTypes 4 | { 5 | internal class PushTransactionRequest 6 | { 7 | public PushTransactionRequest(string hexEncodedInfo) 8 | { 9 | HexEncodedInfo = hexEncodedInfo; 10 | } 11 | 12 | [JsonProperty(PropertyName = "hex")] 13 | public string HexEncodedInfo { get; } 14 | } 15 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/RequestTypes/SendBtcTransactionRequest.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | 3 | namespace CryptoApisLibrary.RequestTypes 4 | { 5 | internal class SendBtcTransactionRequest 6 | { 7 | public SendBtcTransactionRequest(string hexEncodedInfo) 8 | { 9 | HexEncodedInfo = hexEncodedInfo; 10 | } 11 | 12 | [JsonProperty(PropertyName = "hex")] 13 | public string HexEncodedInfo { get; } 14 | } 15 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/RequestTypes/SendEthTransactionRequest.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | 3 | namespace CryptoApisLibrary.RequestTypes 4 | { 5 | internal class SendEthTransactionRequest 6 | { 7 | public SendEthTransactionRequest(string fromAddress, string toAddress, double value) 8 | { 9 | FromAddress = fromAddress; 10 | ToAddress = toAddress; 11 | Value = value; 12 | } 13 | 14 | [JsonProperty(PropertyName = "fromAddress")] 15 | public string FromAddress { get; } 16 | 17 | [JsonProperty(PropertyName = "toAddress")] 18 | public string ToAddress { get; } 19 | 20 | [JsonProperty(PropertyName = "value")] 21 | public double Value { get; } 22 | } 23 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/RequestTypes/SignTransactionRequest.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | using System.Collections.Generic; 3 | 4 | namespace CryptoApisLibrary.RequestTypes 5 | { 6 | internal class SignTransactionRequest 7 | { 8 | public SignTransactionRequest(string hexEncodedInfo, IEnumerable wifs) 9 | { 10 | Hex = hexEncodedInfo; 11 | Wifs.AddRange(wifs); 12 | } 13 | 14 | [JsonProperty(PropertyName = "hex")] 15 | public string Hex { get; } 16 | 17 | [JsonProperty(PropertyName = "wifs")] 18 | public List Wifs { get; } = new List(); 19 | } 20 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/BaseCollectionResponse.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace CryptoApisLibrary.ResponseTypes 4 | { 5 | public abstract class BaseCollectionResponse : BaseMetaCollectionResponse, ICollectionResponse 6 | { 7 | IEnumerable ICollectionResponse.Items => GetItems; 8 | 9 | protected abstract IEnumerable GetItems { get; } 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/BaseResponse.cs: -------------------------------------------------------------------------------- 1 | namespace CryptoApisLibrary.ResponseTypes 2 | { 3 | public abstract class BaseResponse : IResponse 4 | { 5 | public string ErrorMessage { get; set; } 6 | public string ResponseAsString { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/CreateBtcPaymentResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.ResponseTypes.Blockchains.Payloads; 2 | using RestSharp.Deserializers; 3 | 4 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 5 | { 6 | public class CreatePaymentResponse : BaseResponse 7 | { } 8 | 9 | public class CreateBtcPaymentResponse : CreatePaymentResponse 10 | { 11 | [DeserializeAs(Name = "payload")] 12 | public CreateBtcPaymentPayload Payload { get; protected set; } 13 | } 14 | 15 | public class CreateEthPaymentResponse : CreatePaymentResponse 16 | { 17 | [DeserializeAs(Name = "payload")] 18 | public CreateEthPaymentPayload Payload { get; protected set; } 19 | } 20 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/CreateBtcTransactionResponse.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | 3 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 4 | { 5 | public class CreateBtcTransactionResponse : BaseResponse 6 | { 7 | [DeserializeAs(Name = "payload")] 8 | public ResponsePayload Payload { get; protected set; } 9 | 10 | public class ResponsePayload 11 | { 12 | [DeserializeAs(Name = "hex")] 13 | public string Hex { get; protected set; } 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/CreateEthTransactionResponse.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | 3 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 4 | { 5 | public class CreateEthTransactionResponse : BaseResponse 6 | { 7 | [DeserializeAs(Name = "payload")] 8 | public ResponsePayload Payload { get; protected set; } 9 | 10 | public class ResponsePayload 11 | { 12 | [DeserializeAs(Name = "hex")] 13 | public string Hex { get; protected set; } 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/CreateTransactionConfirmationsResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.ResponseTypes.Blockchains.Payloads; 2 | using RestSharp.Deserializers; 3 | 4 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 5 | { 6 | public class CreateTransactionConfirmationsResponse : BaseResponse 7 | { 8 | [DeserializeAs(Name = "payload")] 9 | public CreateTransactionConfirmationsWebHookPayload Payload { get; protected set; } 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/DeleteAllWebhookResponse.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | 3 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 4 | { 5 | public class DeleteAllWebhookResponse : BaseResponse 6 | { 7 | [DeserializeAs(Name = "meta")] 8 | public MetaCollectionResultsOnly Meta { get; protected set; } 9 | 10 | [DeserializeAs(Name = "payload")] 11 | public ResponsePayload Payload { get; protected set; } 12 | 13 | public class ResponsePayload 14 | { 15 | [DeserializeAs(Name = "message")] 16 | public string Message { get; protected set; } 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/DeleteBtcPaymentResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.ResponseTypes.Blockchains.Payloads; 2 | using RestSharp.Deserializers; 3 | 4 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 5 | { 6 | public abstract class DeletePaymentResponse : BaseResponse 7 | { } 8 | 9 | public class DeleteBtcPaymentResponse : DeletePaymentResponse 10 | { 11 | [DeserializeAs(Name = "payload")] 12 | public DeletePaymentPayload Payload { get; protected set; } 13 | } 14 | 15 | public class DeleteEthPaymentResponse : DeletePaymentResponse 16 | { 17 | [DeserializeAs(Name = "payload")] 18 | public DeletePaymentPayload Payload { get; protected set; } 19 | } 20 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/DeleteWalletResponse.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | 3 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 4 | { 5 | public class DeleteWalletResponse : BaseResponse 6 | { 7 | [DeserializeAs(Name = "payload")] 8 | public ResponsePayload Payload { get; protected set; } 9 | 10 | public class ResponsePayload 11 | { 12 | [DeserializeAs(Name = "message")] 13 | public string Message { get; protected set; } 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/DeleteWebhookResponse.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | 3 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 4 | { 5 | public class DeleteWebhookResponse : BaseResponse 6 | { 7 | [DeserializeAs(Name = "payload")] 8 | public ResponsePayload Payload { get; protected set; } 9 | 10 | public class ResponsePayload 11 | { 12 | [DeserializeAs(Name = "message")] 13 | public string Message { get; protected set; } 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/DeployContractResponse.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | 3 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 4 | { 5 | public abstract class DeployContractResponse : BaseResponse 6 | { } 7 | 8 | public class EthDeployContractResponse : DeployContractResponse 9 | { 10 | [DeserializeAs(Name = "payload")] 11 | public ResponsePayload Payload { get; protected set; } 12 | 13 | public class ResponsePayload : BaseResponse 14 | { 15 | [DeserializeAs(Name = "hex")] 16 | public string Hex { get; protected set; } 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/EstimateTransactionGasResponse.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | 3 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 4 | { 5 | public class EstimateTransactionGasResponse : BaseResponse 6 | { 7 | [DeserializeAs(Name = "payload")] 8 | public ResponsePayload Payload { get; protected set; } 9 | 10 | public class ResponsePayload 11 | { 12 | [DeserializeAs(Name = "gasLimit")] 13 | public string GasLimit { get; protected set; } 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/GenerateEthAccountResponse.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | 3 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 4 | { 5 | public class GenerateAccountResponse : BaseResponse 6 | { } 7 | 8 | public class GenerateEthAccountResponse : GenerateAccountResponse 9 | { 10 | [DeserializeAs(Name = "payload")] 11 | public ResponsePayload Payload { get; protected set; } 12 | 13 | public class ResponsePayload 14 | { 15 | [DeserializeAs(Name = "success")] 16 | public string Success { get; protected set; } 17 | 18 | [DeserializeAs(Name = "address")] 19 | public string Address { get; protected set; } 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/GetAddressResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.ResponseTypes.Blockchains.Payloads; 2 | using RestSharp.Deserializers; 3 | 4 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 5 | { 6 | public abstract class GetAddressResponse : BaseResponse 7 | { } 8 | 9 | public class GetBtcAddressResponse : GetAddressResponse 10 | { 11 | [DeserializeAs(Name = "payload")] 12 | public GetBtcAddressPayload Payload { get; protected set; } 13 | } 14 | 15 | public class GetEthAddressResponse : GetAddressResponse 16 | { 17 | [DeserializeAs(Name = "payload")] 18 | public GetEthAddressPayload Payload { get; protected set; } 19 | } 20 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/GetBalanceTokenResponse.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | 3 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 4 | { 5 | public class GetBalanceTokenResponse : BaseResponse 6 | { 7 | [DeserializeAs(Name = "payload")] 8 | public ResponsePayload Payload { get; protected set; } 9 | 10 | public class ResponsePayload 11 | { 12 | [DeserializeAs(Name = "name")] 13 | public string Name { get; protected set; } 14 | 15 | [DeserializeAs(Name = "token")] 16 | public string Balance { get; protected set; } 17 | 18 | [DeserializeAs(Name = "symbol")] 19 | public string Symbol { get; protected set; } 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/GetHashInfoResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.ResponseTypes.Blockchains.Payloads; 2 | using RestSharp.Deserializers; 3 | 4 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 5 | { 6 | public abstract class GetHashInfoResponse : BaseResponse 7 | { } 8 | 9 | public class GetBtcHashInfoResponse : GetHashInfoResponse 10 | { 11 | [DeserializeAs(Name = "payload")] 12 | public GetBtcHashInfoPayload HashInfo { get; protected set; } 13 | } 14 | 15 | public class GetEthHashInfoResponse : GetHashInfoResponse 16 | { 17 | [DeserializeAs(Name = "payload")] 18 | public GetEthHashInfoPayload HashInfo { get; protected set; } 19 | } 20 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/GetHdWalletsResponse.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | using System.Collections.Generic; 3 | 4 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 5 | { 6 | public class GetHdWalletsResponse : BaseResponse 7 | { 8 | [DeserializeAs(Name = "meta")] 9 | public MetaCollectionResultsOnly Meta { get; protected set; } 10 | 11 | [DeserializeAs(Name = "payload")] 12 | public List Wallets { get; protected set; } = new List(); 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/GetInfoResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.ResponseTypes.Blockchains.Payloads; 2 | using RestSharp.Deserializers; 3 | 4 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 5 | { 6 | public abstract class GetInfoResponse : BaseResponse 7 | { } 8 | 9 | public class GetBtcInfoResponse : GetInfoResponse 10 | { 11 | [DeserializeAs(Name = "payload")] 12 | public GetBtcInfoPayload Info { get; protected set; } 13 | } 14 | 15 | public class GetEthInfoResponse : GetInfoResponse 16 | { 17 | [DeserializeAs(Name = "payload")] 18 | public GetEthInfoPayload Info { get; protected set; } 19 | } 20 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/GetMultisignatureAddressesResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.ResponseTypes.Blockchains.Payloads; 2 | using RestSharp.Deserializers; 3 | using System.Collections.Generic; 4 | 5 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 6 | { 7 | public abstract class GetMultisignatureAddressesResponse : BaseCollectionResponse 8 | { } 9 | 10 | public class GetBtcMultisignatureAddressesResponse : GetMultisignatureAddressesResponse 11 | { 12 | [DeserializeAs(Name = "payload")] 13 | public List Addresses { get; protected set; } = new List(); 14 | 15 | protected override IEnumerable GetItems => Addresses; 16 | } 17 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/GetNonceResponse.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | 3 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 4 | { 5 | public abstract class GetNonceResponse : BaseResponse 6 | { } 7 | 8 | public class EthGetNonceResponse : GetNonceResponse 9 | { 10 | [DeserializeAs(Name = "payload")] 11 | public ResponsePayload Payload { get; protected set; } 12 | 13 | public class ResponsePayload 14 | { 15 | [DeserializeAs(Name = "nonce")] 16 | public int Nonce { get; protected set; } 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/GetUnconfirmedTransactionsResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.ResponseTypes.Blockchains.Payloads; 2 | using RestSharp.Deserializers; 3 | using System.Collections.Generic; 4 | using CryptoApisLibrary.DataTypes; 5 | 6 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 7 | { 8 | public class GetUnconfirmedTransactionsResponse : BaseCollectionResponse 9 | { 10 | [DeserializeAs(Name = "payload")] 11 | public List Transactions { get; protected set; } = new List(); 12 | 13 | protected override IEnumerable GetItems => Transactions; 14 | } 15 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/GetWalletsResponse.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | using System.Collections.Generic; 3 | 4 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 5 | { 6 | public class GetWalletsResponse : BaseResponse 7 | { 8 | [DeserializeAs(Name = "meta")] 9 | public MetaCollectionResultsOnly Meta { get; protected set; } 10 | 11 | [DeserializeAs(Name = "payload")] 12 | public List Wallets { get; protected set; } = new List(); 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/GetXPubAddressesResponse.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | using System.Collections.Generic; 3 | 4 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 5 | { 6 | public class GetXPubAddressesResponse : BaseResponse 7 | { 8 | [DeserializeAs(Name = "meta")] 9 | public MetaCollectionResultsOnly Meta { get; protected set; } 10 | 11 | [DeserializeAs(Name = "payload")] 12 | public List Addresses { get; protected set; } = new List(); 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/NewBtcTransactionResponse.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | 3 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 4 | { 5 | public class NewBtcTransactionResponse : BaseResponse 6 | { 7 | [DeserializeAs(Name = "payload")] 8 | public ResponsePayload Payload { get; protected set; } 9 | 10 | public class ResponsePayload 11 | { 12 | [DeserializeAs(Name = "txid")] 13 | public string Txid { get; protected set; } 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/Payloads/CreateAddressWebHookPayload.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | 4 | namespace CryptoApisLibrary.ResponseTypes.Blockchains.Payloads 5 | { 6 | public class CreateAddressWebHookPayload : WebHook 7 | { 8 | [DeserializeAs(Name = "address")] 9 | public string Address { get; protected set; } 10 | 11 | [DeserializeAs(Name = "confirmations")] 12 | public string Confirmations { get; protected set; } 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/Payloads/CreateConfirmedTransactionWebHookPayload.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | 4 | namespace CryptoApisLibrary.ResponseTypes.Blockchains.Payloads 5 | { 6 | public class CreateConfirmedTransactionWebHookPayload : WebHook 7 | { 8 | [DeserializeAs(Name = "confirmations")] 9 | public int ConfirmationCount { get; protected set; } 10 | 11 | [DeserializeAs(Name = "transaction")] 12 | public string TransactionHash { get; protected set; } 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/Payloads/CreateTransactionConfirmationsWebHookPayload.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | 4 | namespace CryptoApisLibrary.ResponseTypes.Blockchains.Payloads 5 | { 6 | public class CreateTransactionConfirmationsWebHookPayload : WebHook 7 | { 8 | [DeserializeAs(Name = "confirmations")] 9 | public int ConfirmationCount { get; protected set; } 10 | 11 | [DeserializeAs(Name = "address")] 12 | public string Address { get; protected set; } 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/Payloads/DeletePaymentPayload.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | 3 | namespace CryptoApisLibrary.ResponseTypes.Blockchains.Payloads 4 | { 5 | public class DeletePaymentPayload 6 | { 7 | [DeserializeAs(Name = "message")] 8 | public string Message { get; protected set; } 9 | } 10 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/Payloads/GenerateAddressPayload.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | 3 | namespace CryptoApisLibrary.ResponseTypes.Blockchains.Payloads 4 | { 5 | public abstract class GenerateAddressPayload 6 | { 7 | [DeserializeAs(Name = "privateKey")] 8 | public string PrivateKey { get; protected set; } 9 | 10 | [DeserializeAs(Name = "address")] 11 | public string Address { get; protected set; } 12 | 13 | [DeserializeAs(Name = "publicKey")] 14 | public string PublicKey { get; protected set; } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/PendingTransactionsResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.ResponseTypes.Blockchains.Payloads; 2 | using RestSharp.Deserializers; 3 | using System.Collections.Generic; 4 | 5 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 6 | { 7 | public class PendingTransactionsResponse : BaseMetaCollectionResponse 8 | { 9 | [DeserializeAs(Name = "payload")] 10 | public List Transactions { get; protected set; } = new List(); 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/PushTransactionResponse.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | 3 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 4 | { 5 | public class PushTransactionResponse : BaseResponse 6 | { 7 | [DeserializeAs(Name = "payload")] 8 | public ResponsePayload Payload { get; protected set; } 9 | 10 | public class ResponsePayload 11 | { 12 | [DeserializeAs(Name = "hex")] 13 | public string Hex { get; protected set; } 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/QueuedTransactionsResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.ResponseTypes.Blockchains.Payloads; 2 | using RestSharp.Deserializers; 3 | using System.Collections.Generic; 4 | 5 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 6 | { 7 | public class QueuedTransactionsResponse : BaseMetaCollectionResponse 8 | { 9 | [DeserializeAs(Name = "payload")] 10 | public List Transactions { get; protected set; } = new List(); 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/RemoveAddressResponse.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | 3 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 4 | { 5 | public class RemoveAddressResponse : BaseResponse 6 | { 7 | [DeserializeAs(Name = "payload")] 8 | public ResponsePayload Payload { get; protected set; } 9 | 10 | public class ResponsePayload 11 | { 12 | [DeserializeAs(Name = "Message")] 13 | public string Message { get; protected set; } 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/SendBtcTransactionResponse.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | 3 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 4 | { 5 | public class SendBtcTransactionResponse : BaseResponse 6 | { 7 | [DeserializeAs(Name = "Payload")] 8 | public ResponsePayload Payload { get; protected set; } 9 | 10 | public class ResponsePayload 11 | { 12 | [DeserializeAs(Name = "txid")] 13 | public string Txid { get; protected set; } 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/SignBtcTransactionResponse.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | 3 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 4 | { 5 | public class SignBtcTransactionResponse : BaseResponse 6 | { 7 | [DeserializeAs(Name = "payload")] 8 | public ResponsePayload Payload { get; protected set; } 9 | 10 | public class ResponsePayload 11 | { 12 | [DeserializeAs(Name = "hex")] 13 | public string Hex { get; protected set; } 14 | 15 | public bool Complete { get; protected set; } 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/TransferTokensResponse.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | 3 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 4 | { 5 | public class TransferTokensResponse : BaseResponse 6 | { 7 | [DeserializeAs(Name = "payload")] 8 | public ResponsePayload Payload { get; protected set; } 9 | 10 | public class ResponsePayload : BaseResponse 11 | { 12 | [DeserializeAs(Name = "hex")] 13 | public string Hex { get; protected set; } 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/WalletInfoResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | 4 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 5 | { 6 | public class WalletInfoResponse : BaseResponse 7 | { 8 | [DeserializeAs(Name = "payload")] 9 | public Wallet Wallet { get; protected set; } 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Blockchains/WebHookResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | 4 | namespace CryptoApisLibrary.ResponseTypes.Blockchains 5 | { 6 | public abstract class WebHookResponse : BaseResponse 7 | { } 8 | 9 | public class BtcWebHookResponse : WebHookResponse 10 | { 11 | [DeserializeAs(Name = "payload")] 12 | public WebHook Hook { get; protected set; } 13 | } 14 | 15 | public class EthWebHookResponse : WebHookResponse 16 | { 17 | [DeserializeAs(Name = "payload")] 18 | public WebHook Hook { get; protected set; } 19 | } 20 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Errors/ErrorResponseVariant1.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | 3 | namespace CryptoApisLibrary.ResponseTypes.Errors 4 | { 5 | public class ErrorResponseVariant1 6 | { 7 | [DeserializeAs(Name = "meta")] 8 | public ErrorMessage Meta { get; protected set; } 9 | 10 | public class ErrorMessage 11 | { 12 | [DeserializeAs(Name = "Message")] 13 | public string Message { get; protected set; } 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/ExchangeRateResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | 4 | namespace CryptoApisLibrary.ResponseTypes 5 | { 6 | public class ExchangeRateResponse 7 | { 8 | [DeserializeAs(Name = "payload")] 9 | public ExchangeRate ExchangeRate { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Exchanges/AssetDetailsResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | 4 | namespace CryptoApisLibrary.ResponseTypes.Exchanges 5 | { 6 | public class AssetDetailsResponse : BaseResponse 7 | { 8 | [DeserializeAs(Name = "payload")] 9 | public Asset Asset { get; protected set; } 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Exchanges/AssetsMetaResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | using System.Collections.Generic; 4 | 5 | namespace CryptoApisLibrary.ResponseTypes.Exchanges 6 | { 7 | public class AssetsMetaResponse : BaseCollectionResponse 8 | { 9 | [DeserializeAs(Name = "payload")] 10 | public List Assets { get; protected set; } = new List(); 11 | 12 | protected override IEnumerable GetItems => Assets; 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Exchanges/AssetsResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | using System.Collections.Generic; 4 | 5 | namespace CryptoApisLibrary.ResponseTypes.Exchanges 6 | { 7 | public class AssetsResponse : BaseCollectionResponse 8 | { 9 | [DeserializeAs(Name = "payload")] 10 | public List Assets { get; protected set; } = new List(); 11 | 12 | protected override IEnumerable GetItems => Assets; 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Exchanges/CurrentRateInExchangeResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | 4 | namespace CryptoApisLibrary.ResponseTypes.Exchanges 5 | { 6 | public class CurrentRateInExchangeResponse : BaseResponse 7 | { 8 | [DeserializeAs(Name = "payload")] 9 | public ExchangeRateInSpecificExchange Rate { get; protected set; } 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Exchanges/CurrentRatesInExchangeResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | using System.Collections.Generic; 4 | 5 | namespace CryptoApisLibrary.ResponseTypes.Exchanges 6 | { 7 | public class CurrentRatesInExchangeResponse : BaseCollectionResponse 8 | { 9 | [DeserializeAs(Name = "payload")] 10 | public List Rates { get; protected set; } = new List(); 11 | 12 | protected override IEnumerable GetItems => Rates; 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Exchanges/ExchangeDetailsResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | 4 | namespace CryptoApisLibrary.ResponseTypes.Exchanges 5 | { 6 | public class ExchangeDetailsResponse : BaseResponse 7 | { 8 | [DeserializeAs(Name = "payload")] 9 | public Exchange Exchange { get; protected set; } 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Exchanges/ExchangeRateResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | 4 | namespace CryptoApisLibrary.ResponseTypes.Exchanges 5 | { 6 | public class ExchangeRateResponse : BaseResponse 7 | { 8 | [DeserializeAs(Name = "payload")] 9 | public ExchangeRate ExchangeRate { get; protected set; } 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Exchanges/ExchangeRatesResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | using System.Collections.Generic; 4 | 5 | namespace CryptoApisLibrary.ResponseTypes.Exchanges 6 | { 7 | public class ExchangeRatesResponse : BaseCollectionResponse 8 | { 9 | [DeserializeAs(Name = "payload")] 10 | public List Rates { get; protected set; } = new List(); 11 | 12 | protected override IEnumerable GetItems => Rates; 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Exchanges/ExchangesAssetsResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | using System.Collections.Generic; 4 | 5 | namespace CryptoApisLibrary.ResponseTypes.Exchanges 6 | { 7 | public class ExchangesAssetsResponse : BaseCollectionResponse 8 | { 9 | [DeserializeAs(Name = "payload")] 10 | public List Infos { get; protected set; } = new List(); 11 | 12 | protected override IEnumerable GetItems => Infos; 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Exchanges/ExchangesMetaResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | using System.Collections.Generic; 4 | 5 | namespace CryptoApisLibrary.ResponseTypes.Exchanges 6 | { 7 | public class ExchangesMetaResponse : BaseCollectionResponse 8 | { 9 | [DeserializeAs(Name = "payload")] 10 | public List Exchanges { get; protected set; } = new List(); 11 | 12 | protected override IEnumerable GetItems => Exchanges; 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Exchanges/ExchangesResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | using System.Collections.Generic; 4 | 5 | namespace CryptoApisLibrary.ResponseTypes.Exchanges 6 | { 7 | public class ExchangesResponse : BaseCollectionResponse 8 | { 9 | [DeserializeAs(Name = "payload")] 10 | public List Exchanges { get; protected set; } = new List(); 11 | 12 | protected override IEnumerable GetItems => Exchanges; 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Exchanges/ExchangesSupportingAssetResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | using System.Collections.Generic; 4 | 5 | namespace CryptoApisLibrary.ResponseTypes.Exchanges 6 | { 7 | public class ExchangesSupportingAssetResponse : BaseCollectionResponse 8 | { 9 | [DeserializeAs(Name = "payload")] 10 | public List Infos { get; protected set; } = new List(); 11 | 12 | protected override IEnumerable GetItems => Infos; 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Exchanges/HistoricalOhlcvResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | using System.Collections.Generic; 4 | 5 | namespace CryptoApisLibrary.ResponseTypes.Exchanges 6 | { 7 | public class HistoricalOhlcvResponse : BaseCollectionResponse 8 | { 9 | [DeserializeAs(Name = "payload")] 10 | public List Ohlcv { get; protected set; } = new List(); 11 | 12 | protected override IEnumerable GetItems => Ohlcv; 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Exchanges/HistoricalTradesResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | using System.Collections.Generic; 4 | 5 | namespace CryptoApisLibrary.ResponseTypes.Exchanges 6 | { 7 | public class HistoricalTradesResponse : BaseCollectionResponse 8 | { 9 | [DeserializeAs(Name = "payload")] 10 | public List Trades { get; protected set; } = new List(); 11 | 12 | protected override IEnumerable GetItems => Trades; 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Exchanges/LatestOhlcvResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | using System.Collections.Generic; 4 | 5 | namespace CryptoApisLibrary.ResponseTypes.Exchanges 6 | { 7 | public class LatestOhlcvResponse : BaseCollectionResponse 8 | { 9 | [DeserializeAs(Name = "payload")] 10 | public List Ohlcv { get; protected set; } = new List(); 11 | 12 | protected override IEnumerable GetItems => Ohlcv; 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Exchanges/LatestTradesResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | using System.Collections.Generic; 4 | 5 | namespace CryptoApisLibrary.ResponseTypes.Exchanges 6 | { 7 | public class LatestTradesResponse : BaseCollectionResponse 8 | { 9 | [DeserializeAs(Name = "payload")] 10 | public List Trades { get; protected set; } = new List(); 11 | 12 | protected override IEnumerable GetItems => Trades; 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Exchanges/OrderBookResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | 4 | namespace CryptoApisLibrary.ResponseTypes.Exchanges 5 | { 6 | public class OrderBookResponse : BaseResponse 7 | { 8 | [DeserializeAs(Name = "payload")] 9 | public OrderBook OrderBook { get; protected set; } 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Exchanges/PeriodsResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | using System.Collections.Generic; 4 | 5 | namespace CryptoApisLibrary.ResponseTypes.Exchanges 6 | { 7 | public class PeriodsResponse : BaseCollectionResponse 8 | { 9 | [DeserializeAs(Name = "payload")] 10 | public List Periods { get; protected set; } = new List(); 11 | 12 | protected override IEnumerable GetItems => Periods; 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Exchanges/SymbolDetailsResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | 4 | namespace CryptoApisLibrary.ResponseTypes.Exchanges 5 | { 6 | public class SymbolDetailsResponse : BaseResponse 7 | { 8 | [DeserializeAs(Name = "payload")] 9 | public Symbol Symbol { get; protected set; } 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Exchanges/SymbolsResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | using System.Collections.Generic; 4 | 5 | namespace CryptoApisLibrary.ResponseTypes.Exchanges 6 | { 7 | public class SymbolsResponse : BaseCollectionResponse 8 | { 9 | [DeserializeAs(Name = "payload")] 10 | public List Symbols { get; protected set; } = new List(); 11 | 12 | protected override IEnumerable GetItems => Symbols; 13 | } 14 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/ICollectionResponse.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace CryptoApisLibrary.ResponseTypes 4 | { 5 | public interface ICollectionResponse : IResponse 6 | { 7 | MetaCollection Meta { get; } 8 | IEnumerable Items { get; } 9 | } 10 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/IResponse.cs: -------------------------------------------------------------------------------- 1 | namespace CryptoApisLibrary.ResponseTypes 2 | { 3 | public interface IResponse 4 | { 5 | string ErrorMessage { get; } 6 | string ResponseAsString { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/MetaCollection.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | 3 | namespace CryptoApisLibrary.ResponseTypes 4 | { 5 | public class MetaCollection : MetaCollectionCount 6 | { 7 | [DeserializeAs(Name = "index")] 8 | public int Index { get; protected set; } 9 | 10 | [DeserializeAs(Name = "limit")] 11 | public int Limit { get; protected set; } 12 | 13 | [DeserializeAs(Name = "results")] 14 | public int Results { get; protected set; } 15 | } 16 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/MetaCollectionCount.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | 3 | namespace CryptoApisLibrary.ResponseTypes 4 | { 5 | public class MetaCollectionCount 6 | { 7 | [DeserializeAs(Name = "totalCount")] 8 | public int Count { get; protected set; } 9 | } 10 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/MetaCollectionResponse.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | 3 | namespace CryptoApisLibrary.ResponseTypes 4 | { 5 | public abstract class BaseMetaCollectionResponse : BaseResponse 6 | { 7 | [DeserializeAs(Name = "meta")] 8 | public MetaCollection Meta { get; protected set; } 9 | } 10 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/MetaCollectionResultsOnly.cs: -------------------------------------------------------------------------------- 1 | using RestSharp.Deserializers; 2 | 3 | namespace CryptoApisLibrary.ResponseTypes 4 | { 5 | public class MetaCollectionResultsOnly : MetaCollectionCount 6 | { 7 | [DeserializeAs(Name = "results")] 8 | public int Results { get; protected set; } 9 | } 10 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Trades/CreateAccountResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | 4 | namespace CryptoApisLibrary.ResponseTypes.Trades 5 | { 6 | public class CreateAccountResponse : BaseResponse 7 | { 8 | [DeserializeAs(Name = "payload")] 9 | public Account Account { get; protected set; } 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisLibrary/ResponseTypes/Trades/GetAccountResponse.cs: -------------------------------------------------------------------------------- 1 | using CryptoApisLibrary.DataTypes; 2 | using RestSharp.Deserializers; 3 | 4 | namespace CryptoApisLibrary.ResponseTypes.Trades 5 | { 6 | public class GetAccountResponse : BaseResponse 7 | { 8 | [DeserializeAs(Name = "payload")] 9 | public Account Account { get; protected set; } 10 | } 11 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/CryptoApisSnippets.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | netcoreapp3.0 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Blockchains/BlockchainSnippets.cs: -------------------------------------------------------------------------------- 1 | namespace CryptoApisSnippets.Samples.Blockchains 2 | { 3 | public partial class BlockchainSnippets 4 | { 5 | public BlockchainSnippets(string apiKey) 6 | { 7 | ApiKey = apiKey; 8 | } 9 | 10 | private string ApiKey { get; } 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Blockchains/Info/GetInfoBch.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CryptoApisLibrary.DataTypes; 3 | using CryptoApisLibrary.ResponseTypes.Blockchains; 4 | 5 | namespace CryptoApisSnippets.Samples.Blockchains 6 | { 7 | partial class BlockchainSnippets 8 | { 9 | public void GetInfoBch() 10 | { 11 | var manager = new CryptoManager(ApiKey); 12 | var response = manager.Blockchains.Info.GetInfo( 13 | NetworkCoin.BchMainNet); 14 | 15 | Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage) 16 | ? "GetInfoBch executed successfully, " + 17 | $"difficulty is {response.Info.Difficulty} now" 18 | : $"GetInfoBch error: {response.ErrorMessage}"); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Blockchains/Info/GetInfoBtc.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CryptoApisLibrary.DataTypes; 3 | using CryptoApisLibrary.ResponseTypes.Blockchains; 4 | 5 | namespace CryptoApisSnippets.Samples.Blockchains 6 | { 7 | partial class BlockchainSnippets 8 | { 9 | public void GetInfoBtc() 10 | { 11 | var manager = new CryptoManager(ApiKey); 12 | var response = manager.Blockchains.Info.GetInfo( 13 | NetworkCoin.BtcMainNet); 14 | 15 | Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage) 16 | ? "GetInfoBtc executed successfully, " + 17 | $"difficulty is {response.Info.Difficulty} now" 18 | : $"GetInfoBtc error: {response.ErrorMessage}"); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Blockchains/Info/GetInfoDash.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CryptoApisLibrary.DataTypes; 3 | using CryptoApisLibrary.ResponseTypes.Blockchains; 4 | 5 | namespace CryptoApisSnippets.Samples.Blockchains 6 | { 7 | partial class BlockchainSnippets 8 | { 9 | public void GetInfoDash() 10 | { 11 | var manager = new CryptoManager(ApiKey); 12 | var response = manager.Blockchains.Info.GetInfo( 13 | NetworkCoin.DashMainNet); 14 | 15 | Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage) 16 | ? "GetInfoDash executed successfully, " + 17 | $"difficulty is {response.Info.Difficulty} now" 18 | : $"GetInfoDash error: {response.ErrorMessage}"); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Blockchains/Info/GetInfoDoge.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CryptoApisLibrary.DataTypes; 3 | using CryptoApisLibrary.ResponseTypes.Blockchains; 4 | 5 | namespace CryptoApisSnippets.Samples.Blockchains 6 | { 7 | partial class BlockchainSnippets 8 | { 9 | public void GetInfoDoge() 10 | { 11 | var manager = new CryptoManager(ApiKey); 12 | var response = manager.Blockchains.Info.GetInfo( 13 | NetworkCoin.DogeMainNet); 14 | 15 | Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage) 16 | ? "GetInfoDoge executed successfully, " + 17 | $"difficulty is {response.Info.Difficulty} now" 18 | : $"GetInfoDoge error: {response.ErrorMessage}"); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Blockchains/Info/GetInfoEth.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CryptoApisLibrary.DataTypes; 3 | using CryptoApisLibrary.ResponseTypes.Blockchains; 4 | 5 | namespace CryptoApisSnippets.Samples.Blockchains 6 | { 7 | partial class BlockchainSnippets 8 | { 9 | public void GetInfoEth() 10 | { 11 | var manager = new CryptoManager(ApiKey); 12 | var response = manager.Blockchains.Info.GetInfo( 13 | NetworkCoin.EthMainNet); 14 | 15 | Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage) 16 | ? "GetInfoEth executed successfully, " + 17 | $"difficulty is {response.Info.Difficulty} now" 18 | : $"GetInfoEth error: {response.ErrorMessage}"); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Blockchains/Info/GetInfoLtc.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CryptoApisLibrary.DataTypes; 3 | using CryptoApisLibrary.ResponseTypes.Blockchains; 4 | 5 | namespace CryptoApisSnippets.Samples.Blockchains 6 | { 7 | partial class BlockchainSnippets 8 | { 9 | public void GetInfoLtc() 10 | { 11 | var manager = new CryptoManager(ApiKey); 12 | var response = manager.Blockchains.Info.GetInfo( 13 | NetworkCoin.LtcMainNet); 14 | 15 | Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage) 16 | ? "GetInfoLtc executed successfully, " + 17 | $"difficulty is {response.Info.Difficulty} now" 18 | : $"GetInfoLtc error: {response.ErrorMessage}"); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Blockchains/Wallets/GetWalletsBch.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CryptoApisLibrary.DataTypes; 3 | using CryptoApisLibrary.ResponseTypes.Blockchains; 4 | 5 | namespace CryptoApisSnippets.Samples.Blockchains 6 | { 7 | partial class BlockchainSnippets 8 | { 9 | public void GetWalletsBch() 10 | { 11 | var manager = new CryptoManager(ApiKey); 12 | var response = manager.Blockchains.Wallet.GetWallets( 13 | NetworkCoin.BchMainNet); 14 | 15 | Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage) 16 | ? "GetWalletsBch executed successfully, " + 17 | $"{response.Wallets.Count} wallets returned" 18 | : $"GetWalletsBch error: {response.ErrorMessage}"); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Blockchains/Wallets/GetWalletsBtc.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CryptoApisLibrary.DataTypes; 3 | using CryptoApisLibrary.ResponseTypes.Blockchains; 4 | 5 | namespace CryptoApisSnippets.Samples.Blockchains 6 | { 7 | partial class BlockchainSnippets 8 | { 9 | public void GetWalletsBtc() 10 | { 11 | var manager = new CryptoManager(ApiKey); 12 | var response = manager.Blockchains.Wallet.GetWallets( 13 | NetworkCoin.BtcMainNet); 14 | 15 | Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage) 16 | ? "GetWalletsBtc executed successfully, " + 17 | $"{response.Wallets.Count} wallets returned" 18 | : $"GetWalletsBtc error: {response.ErrorMessage}"); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Blockchains/Wallets/GetWalletsLtc.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CryptoApisLibrary.DataTypes; 3 | using CryptoApisLibrary.ResponseTypes.Blockchains; 4 | 5 | namespace CryptoApisSnippets.Samples.Blockchains 6 | { 7 | partial class BlockchainSnippets 8 | { 9 | public void GetWalletsLtc() 10 | { 11 | var manager = new CryptoManager(ApiKey); 12 | var response = manager.Blockchains.Wallet.GetWallets( 13 | NetworkCoin.LtcMainNet); 14 | 15 | Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage) 16 | ? "GetWalletsLtc executed successfully, " + 17 | $"{response.Wallets.Count} wallets returned" 18 | : $"GetWalletsLtc error: {response.ErrorMessage}"); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Blockchains/WebhookNotifications/GetHooksBch.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CryptoApisLibrary.DataTypes; 3 | using CryptoApisLibrary.ResponseTypes.Blockchains; 4 | 5 | namespace CryptoApisSnippets.Samples.Blockchains 6 | { 7 | partial class BlockchainSnippets 8 | { 9 | public void GetHooksBch() 10 | { 11 | var manager = new CryptoManager(ApiKey); 12 | var response = manager.Blockchains.WebhookNotification.GetHooks( 13 | NetworkCoin.BchMainNet); 14 | 15 | Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage) 16 | ? $"GetHooksBch executed successfully, {response.Hooks.Count} hooks returned" 17 | : $"GetHooksBch error: {response.ErrorMessage}"); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Blockchains/WebhookNotifications/GetHooksBtc.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CryptoApisLibrary.DataTypes; 3 | using CryptoApisLibrary.ResponseTypes.Blockchains; 4 | 5 | namespace CryptoApisSnippets.Samples.Blockchains 6 | { 7 | partial class BlockchainSnippets 8 | { 9 | public void GetHooksBtc() 10 | { 11 | var manager = new CryptoManager(ApiKey); 12 | var response = manager.Blockchains.WebhookNotification.GetHooks( 13 | NetworkCoin.BtcMainNet); 14 | 15 | Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage) 16 | ? $"GetHooksBtc executed successfully, {response.Hooks.Count} hooks returned" 17 | : $"GetHooksBtc error: {response.ErrorMessage}"); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Blockchains/WebhookNotifications/GetHooksDash.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CryptoApisLibrary.DataTypes; 3 | using CryptoApisLibrary.ResponseTypes.Blockchains; 4 | 5 | namespace CryptoApisSnippets.Samples.Blockchains 6 | { 7 | partial class BlockchainSnippets 8 | { 9 | public void GetHooksDash() 10 | { 11 | var manager = new CryptoManager(ApiKey); 12 | var response = manager.Blockchains.WebhookNotification.GetHooks( 13 | NetworkCoin.DashMainNet); 14 | 15 | Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage) 16 | ? $"GetHooksDash executed successfully, {response.Hooks.Count} hooks returned" 17 | : $"GetHooksDash error: {response.ErrorMessage}"); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Blockchains/WebhookNotifications/GetHooksDoge.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CryptoApisLibrary.DataTypes; 3 | using CryptoApisLibrary.ResponseTypes.Blockchains; 4 | 5 | namespace CryptoApisSnippets.Samples.Blockchains 6 | { 7 | partial class BlockchainSnippets 8 | { 9 | public void GetHooksDoge() 10 | { 11 | var manager = new CryptoManager(ApiKey); 12 | var response = manager.Blockchains.WebhookNotification.GetHooks( 13 | NetworkCoin.DogeMainNet); 14 | 15 | Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage) 16 | ? $"GetHooksDoge executed successfully, {response.Hooks.Count} hooks returned" 17 | : $"GetHooksDoge error: {response.ErrorMessage}"); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Blockchains/WebhookNotifications/GetHooksEth.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CryptoApisLibrary.DataTypes; 3 | using CryptoApisLibrary.ResponseTypes.Blockchains; 4 | 5 | namespace CryptoApisSnippets.Samples.Blockchains 6 | { 7 | partial class BlockchainSnippets 8 | { 9 | public void GetHooksEth() 10 | { 11 | var manager = new CryptoManager(ApiKey); 12 | var response = manager.Blockchains.WebhookNotification.GetHooks( 13 | NetworkCoin.EthRopsten); 14 | 15 | Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage) 16 | ? $"GetHooksEth executed successfully, {response.Hooks.Count} hooks returned" 17 | : $"GetHooksEth error: {response.ErrorMessage}"); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Blockchains/WebhookNotifications/GetHooksLtc.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CryptoApisLibrary.DataTypes; 3 | using CryptoApisLibrary.ResponseTypes.Blockchains; 4 | 5 | namespace CryptoApisSnippets.Samples.Blockchains 6 | { 7 | partial class BlockchainSnippets 8 | { 9 | public void GetHooksLtc() 10 | { 11 | var manager = new CryptoManager(ApiKey); 12 | var response = manager.Blockchains.WebhookNotification.GetHooks( 13 | NetworkCoin.LtcMainNet); 14 | 15 | Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage) 16 | ? $"GetHooksLtc executed successfully, {response.Hooks.Count} hooks returned" 17 | : $"GetHooksLtc error: {response.ErrorMessage}"); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Exchanges/ExchangeSnippets.cs: -------------------------------------------------------------------------------- 1 | namespace CryptoApisSnippets.Samples.Exchanges 2 | { 3 | public partial class ExchangeSnippets 4 | { 5 | public ExchangeSnippets(string apiKey) 6 | { 7 | ApiKey = apiKey; 8 | } 9 | 10 | private string ApiKey { get; } 11 | } 12 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Exchanges/Info/AssetDetails.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CryptoApisLibrary.DataTypes; 3 | 4 | namespace CryptoApisSnippets.Samples.Exchanges 5 | { 6 | partial class ExchangeSnippets 7 | { 8 | public void AssetDetails() 9 | { 10 | var asset = new Asset("5b755dacd5dd99000b3d92b2"); 11 | 12 | var manager = new CryptoManager(ApiKey); 13 | var exchangeDetails = manager.Exchanges.Info.AssetDetails(asset); 14 | Console.WriteLine(string.IsNullOrEmpty(exchangeDetails.ErrorMessage) 15 | ? "AssetDetails executed successfully, " + 16 | $"a Name of asset is {exchangeDetails.Asset.Name}" 17 | : $"AssetDetails error: {exchangeDetails.ErrorMessage}"); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Exchanges/Info/Assets.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CryptoApisSnippets.Samples.Exchanges 4 | { 5 | partial class ExchangeSnippets 6 | { 7 | public void Assets() 8 | { 9 | var manager = new CryptoManager(ApiKey); 10 | var response = manager.Exchanges.Info.Assets(skip: 0, limit: 10); 11 | 12 | Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage) 13 | ? "Assets executed successfully, " + 14 | $"{response.Assets.Count} assets returned" 15 | : $"Assets error: {response.ErrorMessage}"); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Exchanges/Info/AssetsMeta.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CryptoApisSnippets.Samples.Exchanges 4 | { 5 | partial class ExchangeSnippets 6 | { 7 | public void AssetsMeta() 8 | { 9 | var manager = new CryptoManager(ApiKey); 10 | var response = manager.Exchanges.Info.AssetsMeta(skip: 0, limit: 10); 11 | 12 | Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage) 13 | ? "AssetsMeta executed successfully, " + 14 | $"{response.Assets.Count} assets returned" 15 | : $"AssetsMeta error: {response.ErrorMessage}"); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Exchanges/Info/ExchangeDetails.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CryptoApisLibrary.DataTypes; 3 | 4 | namespace CryptoApisSnippets.Samples.Exchanges 5 | { 6 | partial class ExchangeSnippets 7 | { 8 | public void ExchangeDetails() 9 | { 10 | var exchange = new Exchange("5b1ea9d21090c200146f7366"); 11 | 12 | var manager = new CryptoManager(ApiKey); 13 | var exchangeDetails = manager.Exchanges.Info.ExchangeDetails(exchange); 14 | Console.WriteLine(string.IsNullOrEmpty(exchangeDetails.ErrorMessage) 15 | ? "ExchangeDetails executed successfully, " + 16 | $"a Name of exchange is {exchangeDetails.Exchange.Name}" 17 | : $"ExchangeDetails error: {exchangeDetails.ErrorMessage}"); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Exchanges/Info/Exchanges.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CryptoApisSnippets.Samples.Exchanges 4 | { 5 | partial class ExchangeSnippets 6 | { 7 | public void Exchanges() 8 | { 9 | var manager = new CryptoManager(ApiKey); 10 | var response = manager.Exchanges.Info.Exchanges(skip: 0, limit: 10); 11 | 12 | Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage) 13 | ? "Exchanges executed successfully, " + 14 | $"{response.Exchanges.Count} exchanges returned" 15 | : $"Exchanges error: {response.ErrorMessage}"); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Exchanges/Info/ExchangesMeta.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CryptoApisSnippets.Samples.Exchanges 4 | { 5 | partial class ExchangeSnippets 6 | { 7 | public void ExchangesMeta() 8 | { 9 | var manager = new CryptoManager(ApiKey); 10 | var response = manager.Exchanges.Info.ExchangesMeta(skip: 0, limit: 10); 11 | 12 | Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage) 13 | ? "ExchangesMeta executed successfully, " + 14 | $"{response.Exchanges.Count} exchanges returned" 15 | : $"ExchangesMeta error: {response.ErrorMessage}"); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Exchanges/Info/SymbolDetails.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CryptoApisLibrary.DataTypes; 3 | 4 | namespace CryptoApisSnippets.Samples.Exchanges 5 | { 6 | partial class ExchangeSnippets 7 | { 8 | public void SymbolDetails() 9 | { 10 | var symbol = new Symbol { Id = "5bfc325c9c40a100014db8ff" }; 11 | 12 | var manager = new CryptoManager(ApiKey); 13 | var exchangeDetails = manager.Exchanges.Info.SymbolDetails(symbol); 14 | Console.WriteLine(string.IsNullOrEmpty(exchangeDetails.ErrorMessage) 15 | ? "SymbolDetails executed successfully, " + 16 | $"a Name of symbol is {exchangeDetails.Symbol}" 17 | : $"SymbolDetails error: {exchangeDetails.ErrorMessage}"); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Exchanges/Info/Symbols.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CryptoApisSnippets.Samples.Exchanges 4 | { 5 | partial class ExchangeSnippets 6 | { 7 | public void Symbols() 8 | { 9 | var manager = new CryptoManager(ApiKey); 10 | var response = manager.Exchanges.Info.Symbols(skip: 0, limit: 10); 11 | 12 | Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage) 13 | ? "Symbols executed successfully, " + 14 | $"{response.Symbols.Count} symbols returned" 15 | : $"Symbols error: {response.ErrorMessage}"); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Exchanges/Info/SymbolsInExchange.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CryptoApisLibrary.DataTypes; 3 | 4 | namespace CryptoApisSnippets.Samples.Exchanges 5 | { 6 | partial class ExchangeSnippets 7 | { 8 | public void SymbolsInExchange() 9 | { 10 | var exchange = new Exchange("5b1ea9d21090c200146f7366"); 11 | 12 | var manager = new CryptoManager(ApiKey); 13 | var response = manager.Exchanges.Info.SymbolsInExchange(exchange, skip: 0, limit: 10); 14 | 15 | Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage) 16 | ? "SymbolsInExchange executed successfully, " + 17 | $"{response.Infos.Count} symbols returned" 18 | : $"SymbolsInExchange error: {response.ErrorMessage}"); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Exchanges/Ohlcv/Periods.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CryptoApisSnippets.Samples.Exchanges 4 | { 5 | partial class ExchangeSnippets 6 | { 7 | public void Periods() 8 | { 9 | var manager = new CryptoManager(ApiKey); 10 | var response = manager.Exchanges.Ohlcv.Periods(); 11 | 12 | Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage) 13 | ? "Periods executed successfully, " + 14 | $"{response.Periods.Count} periods returned" 15 | : $"Periods error: {response.ErrorMessage}"); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Exchanges/Rates/ExchangeRates.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CryptoApisLibrary.DataTypes; 3 | 4 | namespace CryptoApisSnippets.Samples.Exchanges 5 | { 6 | partial class ExchangeSnippets 7 | { 8 | public void ExchangeRates() 9 | { 10 | var baseAsset = new Asset("5b1ea92e584bf50020130615"); 11 | 12 | var manager = new CryptoManager(ApiKey); 13 | var response = manager.Exchanges.Rates.GetAny(baseAsset, skip: 0, limit: 10); 14 | 15 | Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage) 16 | ? "ExchangeRates executed successfully, " + 17 | $"{response.Rates.Count} rates returned" 18 | : $"ExchangeRates error: {response.ErrorMessage}"); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Exchanges/Trades/LatestSymbolTrades.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using CryptoApisLibrary.DataTypes; 3 | 4 | namespace CryptoApisSnippets.Samples.Exchanges 5 | { 6 | partial class ExchangeSnippets 7 | { 8 | public void LatestSymbolTrades() 9 | { 10 | var symbol = new Symbol { Id = "5b3a4d343d8cea0001653d1d" }; 11 | 12 | var manager = new CryptoManager(ApiKey); 13 | var response = manager.Exchanges.Trades.Latest(symbol, limit: 10); 14 | 15 | Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage) 16 | ? "GetLatestSymbolTrades executed successfully, " + 17 | $"{response.Trades.Count} trades returned" 18 | : $"GetLatestSymbolTrades error: {response.ErrorMessage}"); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /CryptoApisSnippets/Samples/Exchanges/Trades/LatestTrades.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace CryptoApisSnippets.Samples.Exchanges 4 | { 5 | partial class ExchangeSnippets 6 | { 7 | public void LatestTrades() 8 | { 9 | var manager = new CryptoManager(ApiKey); 10 | var response = manager.Exchanges.Trades.Latest(limit: 10); 11 | 12 | Console.WriteLine(string.IsNullOrEmpty(response.ErrorMessage) 13 | ? "LatestTrades executed successfully, " + 14 | $"{response.Trades.Count} trades returned" 15 | : $"LatestTrades error: {response.ErrorMessage}"); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /DemoApplication/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /DemoApplication/ICollectionProvider.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Threading.Tasks; 3 | using CryptoApisLibrary.ResponseTypes; 4 | using MorseCode.ITask; 5 | 6 | namespace WindowsFormsApp1 7 | { 8 | interface ICollectionProvider where T: ICollectionResponse 9 | { 10 | IEnumerable Items(); 11 | ITask GetPartItemsAsync(int skip, int limit); 12 | IEnumerable Headers { get; } 13 | IEnumerable ItemContent(object item); 14 | } 15 | } -------------------------------------------------------------------------------- /DemoApplication/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /DemoApplication/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | --------------------------------------------------------------------------------