diff --git a/trezorlib/coins.py b/trezorlib/coins.py index 6d777ec..6737f1a 100644 --- a/trezorlib/coins.py +++ b/trezorlib/coins.py @@ -1,8 +1,9 @@ -from .tx_api import TxApiBitcoin, TxApiTestnet, TxApiLitecoin, TxApiZcash, TxApiDash, TxApiBcash +from .tx_api import TxApiBitcoin, TxApiTestnet, TxApiLitecoin, TxApiZcash, TxApiDash, TxApiBcash, TxApiDecredTestnet coins_slip44 = { 'Bitcoin': 0, 'Testnet': 1, + 'Decred Testnet': 1, 'Litecoin': 2, 'Dogecoin': 3, 'Dash': 5, @@ -21,4 +22,5 @@ coins_txapi = { 'Dash': TxApiDash, 'Zcash': TxApiZcash, 'Bcash': TxApiBcash, + 'Decred Testnet': TxApiDecredTestnet, } diff --git a/trezorlib/tx_api.py b/trezorlib/tx_api.py index ad2be6c..8ed6e8e 100644 --- a/trezorlib/tx_api.py +++ b/trezorlib/tx_api.py @@ -184,5 +184,6 @@ TxApiLitecoin = TxApiInsight(network='insight_litecoin', url='https://ltc-bitcor TxApiDash = TxApiInsight(network='insight_dash', url='https://dash-bitcore1.trezor.io/api/') TxApiZcash = TxApiInsight(network='insight_zcash', url='https://zec-bitcore1.trezor.io/api/', zcash=True) TxApiBcash = TxApiInsight(network='insight_zcash', url='https://bch-bitcore2.trezor.io/api/') +TxApiDecredTestnet = TxApiInsight(network='insight_decred_testnet', url='https://testnet.decred.org/api/') TxApiSegnet = TxApiSmartbit(network='smartbit_segnet', url='https://segnet-api.smartbit.com.au/v1/blockchain/')