@arkade-os/sdk Documentation - v0.5.0-rc.11
    Preparing search index...

    Interface ReadonlyWalletConfig

    Configuration options for readonly wallet initialization.

    Use this config when you only need to query wallet state (balance, addresses, transactions) without the ability to send transactions. This is useful for:

    • Watch-only wallets
    • Monitoring addresses
    • Safe sharing of wallet state without private key exposure
    • BaseWalletConfig
    • IReadonlyWallet
    // Provider-based configuration (e.g., for Expo/React Native)
    const wallet = await ReadonlyWallet.create({
    identity: ReadonlySingleKey.fromPublicKey(pubkey),
    arkProvider: new ExpoArkProvider(),
    indexerProvider: new ExpoIndexerProvider(),
    onchainProvider: new EsploraProvider()
    });
    interface ReadonlyWalletConfig {
        arkProvider?: ArkProvider;
        arkServerPublicKey?: string;
        boardingTimelock?: RelativeTimelock;
        delegateProvider?: DelegateProvider;
        exitTimelock?: RelativeTimelock;
        identity: ReadonlyIdentity;
        indexerProvider?: IndexerProvider;
        minBatchExpirySeconds?: bigint;
        minCheckpointExitDelaySeconds?: bigint;
        onchainProvider?: OnchainProvider;
        storage?: StorageConfig;
        watcherConfig?: Partial<Omit<ContractWatcherConfig, "indexerProvider">>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    arkProvider?: ArkProvider

    Optional Arkade provider instance.

    arkServerPublicKey?: string

    Optional Arkade server public key used to construct and validate Arkade addresses.

    boardingTimelock?: RelativeTimelock

    Relative timelock applied to boarding scripts.

    delegateProvider?: DelegateProvider

    Optional delegation service instance.

    exitTimelock?: RelativeTimelock

    Relative timelock applied to unilateral exit paths.

    Readonly identity used to derive wallet addresses.

    indexerProvider?: IndexerProvider

    Optional indexer provider instance.

    minBatchExpirySeconds?: bigint

    Minimum accepted BatchStartedEvent.batchExpiry, as wall-clock seconds. Defaults per network — see defaultBatchExpiryPolicy. Lowering it below the default relaxes a fund-safety bound; intended for local testing.

    minCheckpointExitDelaySeconds?: bigint

    Minimum accepted checkpoint exit delay decoded from ArkadeInfo.checkpointTapscript, as wall-clock seconds. Defaults per network — see defaultCheckpointExitDelayPolicy, which already carries the value the hosted signet and mutinynet Arkade Services advertise, so neither needs this set. Lowering it below the default relaxes a fund-safety bound; intended for local testing.

    onchainProvider?: OnchainProvider

    Optional onchain provider instance.

    storage?: StorageConfig

    Repository-backed storage configuration overrides. Defaults to IndexedDB if unset.

    watcherConfig?: Partial<Omit<ContractWatcherConfig, "indexerProvider">>

    Configuration for the ContractManager's watcher. Controls reconnection behavior and failsafe polling.

    ContractWatcherConfig