Skip to main content
Creates a SparkReadonlyClient with no authentication. Can query any wallet that hasn’t enabled privacy mode.

Method Signature

Parameters

ConfigOptions
Configuration options including network selection.

Returns

SparkReadonlyClient
required
A wallet viewer instance with no authentication. Requests are made without an identity key.

Example

Bitcoin balance and wallet-history queries return empty results (zero balances, empty arrays) when a private wallet denies read access. This deliberately avoids revealing whether the wallet is private or empty; unrelated authentication or network errors can still occur. Use createWithViewerKey() as the owner or an authorized viewer to query a private wallet. An unrelated authenticated identity does not gain access.