SparkReadonlyClient authenticated with a custom SparkSigner. Designed for partners (e.g., Privy) who provide their own signer implementation without exposing a mnemonic.
Method Signature
Parameters
ConfigOptions | undefined
required
Configuration options including network selection. Pass
undefined for defaults.SparkSigner
required
A pre-initialized
SparkSigner implementation. The signer’s identity key is used for authentication.Returns
SparkReadonlyClient
required
An authenticated wallet viewer using the provided signer for identity verification.
Example
See the Spark Signer Interface docs for implementing a custom
SparkSigner.