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

    Class ServiceWorkerReadonlyWallet

    Readonly wallet interface for Bitcoin transactions with Arkade protocol support.

    This interface defines the contract that all wallet implementations must follow. It provides methods for address management, balance checking, virtual output operations, and transaction management including sending, settling, and unrolling.

    IWallet

    Hierarchy (View Summary)

    Implements

    Index

    Properties

    activity: ActivityRegistry = ...

    Resolvers that group/label getActivityHistory rows.

    contractRepository: ContractRepository

    Readonly identity associated with the wallet.

    serviceWorker: ServiceWorker
    walletRepository: WalletRepository

    Accessors

    Methods

    • Return service-worker wallet status, including connectivity and sync state.

      Returns Promise<
          {
              providerConnectionState?: ProviderConnectionState;
              walletInitialized: boolean;
              xOnlyPublicKey: Uint8Array<ArrayBufferLike>
              | undefined;
          },
      >

      Current service-worker wallet status payload including walletInitalized and xOnlyPublicKey

    • Simplified setup method that handles service worker registration and wallet initialization automatically.

      Parameters

      • options: ServiceWorkerWalletSetupOptions

      Returns Promise<ServiceWorkerReadonlyWallet>

      ServiceWorkerReadonlyWallet.create

      const wallet = await ServiceWorkerReadonlyWallet.setup({
      serviceWorkerPath: '/service-worker.js',
      arkServer: { url: 'https://arkade.computer' },
      identity: ReadonlySingleKey.fromPublicKey('your_public_key_hex')
      });