import { Chain } from '../sdk/types'; import { WalletServicesOptions } from '../sdk/WalletServices.interfaces'; import { ChaintracksClientApi } from './chaintracker/chaintracks/Api/ChaintracksClientApi'; import { regtestArcadeUrl, regtestChaintracksUrl } from './networkConfig'; export { regtestArcadeUrl, regtestChaintracksUrl }; /** * Returns the credential-free default ChainTracks client for a supported * public network, or an operator-configured client for stn/tstn. * * BROWSER RUNTIMES get the legacy CORS-enabled Chaintracks service for * main/test. The Go Chaintracks deployments (`arcade-v2-*.bsvblockchain.tech`) * currently serve no `Access-Control-Allow-Origin` header and answer OPTIONS * preflights with 404 (verified live 2026-08-11), so every fetch from a * browser-hosted wallet is CORS-blocked (WebKit surfaces it as * `TypeError: Load failed`) and the wallet loses `getHeight`, headers and * merkle-root validation wholesale. The repository service contract * (AGENTS.md: "browser, mobile, and unknown-domain clients must not be * silently blocked by CORS") requires a default that browsers can actually * reach. Once the Go deployments serve CORS (and a browser-run conformance * check proves it), this branch can be removed and browsers can share the v2 * default. Node runtimes are unchanged. */ export declare function createDefaultChaintracksClient(chain: Exclude): ChaintracksClientApi; export declare function createDefaultWalletServicesOptions(...[chain, arcCallbackUrl, arcCallbackToken, taalArcApiKey, gorillaPoolArcApiKey, bitailsApiKey, deploymentId, chaintracks, arcadeUrl, arcadeApiKey, arcadeCallbackToken]: [ chain: Chain, arcCallbackUrl?: string, arcCallbackToken?: string, taalArcApiKey?: string, gorillaPoolArcApiKey?: string, bitailsApiKey?: string, deploymentId?: string, chaintracks?: ChaintracksClientApi, /** * Optional Arcade endpoint. TTN uses its public Arcade endpoint by default and regtest * uses REGTEST_ARCADE_URL; other chains remain opt-in. Arcade is registered as the * primary broadcaster ahead of ARC. Pass an empty string to explicitly disable the * TTN or regtest default. */ arcadeUrl?: string, /** Server-level API key (Bearer) for the Arcade endpoint, if it requires auth. */ arcadeApiKey?: string, /** * Stable SSE callback token. Must match the Monitor's `callbackToken` so Arcade routes * each broadcast transaction's status events to this wallet's `/events` subscription. */ arcadeCallbackToken?: string ]): WalletServicesOptions; /** * Default Arcade (bsv-blockchain/arcade) endpoint per chain. * Returns undefined when no public default is known for the chain. */ export declare function arcadeDefaultUrl(chain: Chain): string | undefined; export declare function arcDefaultUrl(chain: Chain): string; export declare function arcGorillaPoolUrl(chain: Chain): string | undefined; //# sourceMappingURL=createDefaultWalletServicesOptions.d.ts.map