aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-06-27 17:45:01 -0700
committerAdam Soltys <[email protected]>2026-06-27 17:45:01 -0700
commit803ccd12cded3f09086c715fffbc918a01575e09 (patch)
treef37a609beed7d119e8cc4329d682e0821eac52d2 /src
parent97b32b97edea28b72f9be3dd82c468f57f401926 (diff)
downloadcoinosv3-803ccd12cded3f09086c715fffbc918a01575e09.tar.gz
coinosv3-803ccd12cded3f09086c715fffbc918a01575e09.zip
Default mainnet to the hosted coinos silent-payment indexer
Mainnet wallets now use https://halwallet.app/sp (our indexer on cs, behind nginx /sp), enabling silent-payment receiving on mainnet. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/api.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api.js b/src/api.js
index 5287e13..56978f8 100644
--- a/src/api.js
+++ b/src/api.js
@@ -112,12 +112,12 @@ function nk(base, net) { return net === 'mainnet' ? base : `${base}:${net}`; }
// outputs, so self-hosting is the privacy-max option. Per network; an empty URL
// means SP receiving is unavailable on that network.
const SP_INDEXER_PRESETS_BY_NET = {
- mainnet: [{ id: 'custom', label: 'Custom', url: '' }], // a hosted default goes here once we run one
+ mainnet: [{ id: 'coinos', label: 'coinos', url: 'https://halwallet.app/sp' }, { id: 'custom', label: 'Custom', url: '' }],
testnet: [{ id: 'custom', label: 'Custom', url: '' }],
mutinynet: [{ id: 'custom', label: 'Custom', url: '' }],
regtest: [{ id: 'local', label: 'Local (localhost:8888)', url: 'http://localhost:8888' }, { id: 'custom', label: 'Custom', url: '' }],
};
-const SP_INDEXER_DEFAULT = { mainnet: 'custom', testnet: 'custom', mutinynet: 'custom', regtest: 'local' };
+const SP_INDEXER_DEFAULT = { mainnet: 'coinos', testnet: 'custom', mutinynet: 'custom', regtest: 'local' };
const SP_INDEXER_KEY = 'btc-wallet-sp-indexer';
export function spIndexerPresets(net = getNetwork()) { return SP_INDEXER_PRESETS_BY_NET[net] || SP_INDEXER_PRESETS_BY_NET.mainnet; }
export function getSpIndexerConfig(net = getNetwork()) {