ReadonlycontractReadonlyidentityReadonlyserviceReadonlywalletOptionalfilter: GetVtxosFilterStaticcreateStaticsetupSimplified setup method that handles service worker registration, identity creation, and wallet initialization automatically.
// One-liner setup - handles everything automatically!
const wallet = await ServiceWorkerReadonlyWallet.setup({
serviceWorkerPath: '/service-worker.js',
arkServerUrl: 'https://mutinynet.arkade.sh'
});
// With custom readonly identity
const identity = ReadonlySingleKey.fromPublicKey('your_public_key_hex');
const wallet = await ServiceWorkerReadonlyWallet.setup({
serviceWorkerPath: '/service-worker.js',
arkServerUrl: 'https://mutinynet.arkade.sh',
identity
});
Readonly wallet interface for Bitcoin transactions with Ark protocol support.
This interface defines the contract that all wallet implementations must follow. It provides methods for address management, balance checking, virtual UTXO operations, and transaction management including sending, settling, and unrolling.