| … | … | @@ -81,8 +81,13 @@ function getDefaultConfig() { |
| 81 | 81 | }, |
| 82 | 82 | bitcoin: { |
| 83 | 83 | network: 'testnet', |
| 84 | host: 'electrum.blockstream.info', | |
| 85 | port: 60001 | |
| 84 | client: { | |
| 85 | type: 'electrum', | |
| 86 | clientConfig: { | |
| 87 | host: 'electrum.blockstream.info', | |
| 88 | port: 60001 | |
| 89 | } | |
| 90 | } | |
| 86 | 91 | } |
| 87 | 92 | } |
| 88 | 93 | } |
| … | … | @@ -21,9 +21,13 @@ const DEFAULT_CONFIG = { |
| 21 | 21 | rpcUrl: null |
| 22 | 22 | }, |
| 23 | 23 | bitcoin: { |
| 24 | provider: 'electrum', | |
| 25 | host: 'electrum.blockstream.info', | |
| 26 | port: 60001 | |
| 24 | client: { | |
| 25 | type: 'electrum', | |
| 26 | clientConfig: { | |
| 27 | host: 'electrum.blockstream.info', | |
| 28 | port: 60001 | |
| 29 | } | |
| 30 | } | |
| 27 | 31 | } |
| 28 | 32 | }, |
| 29 | 33 |
| … | … | @@ -93,8 +93,13 @@ async function initializeWDK(walletMnemonic, config = { testnet: true, testnet4: |
| 93 | 93 | const wdk = new WDK.default(walletMnemonic) |
| 94 | 94 | .registerWallet('bitcoin', WalletManagerBtc.default, { |
| 95 | 95 | network: config.testnet4 ? 'testnet4' : (config.testnet ? 'testnet' : 'bitcoin'), |
| 96 | host: config.testnet4 ? 'blackie.c3-soft.com' : 'electrum.blockstream.info', | |
| 97 | port: config.testnet4 ? 50001 : (config.testnet ? 60001 : 50001) | |
| 96 | client: { | |
| 97 | type: 'electrum', | |
| 98 | clientConfig: { | |
| 99 | host: config.testnet4 ? 'blackie.c3-soft.com' : 'electrum.blockstream.info', | |
| 100 | port: config.testnet4 ? 50001 : (config.testnet ? 60001 : 50001) | |
| 101 | } | |
| 102 | } | |
| 98 | 103 | }) |
| 99 | 104 | .registerWallet('ethereum', WalletManagerEvm.default, { |
| 100 | 105 | provider: config.testnet |