Skip to content

Wallet provider API

Bitcoin Universe supports two self-custody wallet integration surfaces:

  1. Universe Bitcoin Wallet (Chrome MV3 extension): Injects window.tapwallet (and window.universe) into pages so web applications can request account connection, signatures, and PSBT signing.
  2. Universe Web Wallet (https://wallet.bitcoinuniverse.io/): Extension-free browser wallet using an exact-origin, opener-bound MessageChannel broker (uww-broker/1) through /bridge.html for authorized Universe origins (https://bitcoinuniverse.io, https://www.bitcoinuniverse.io, https://test.bitcoinuniverse.io).

Read the full extension provider reference in docs-wallet, or review the Universe Wallet guides on this portal.

When the Universe Bitcoin Wallet extension is installed, pages receive window.tapwallet:

if (typeof window.tapwallet !== 'undefined') {
console.log('Universe Bitcoin Wallet extension is available');
}

Every method returns a promise. When a user rejects a request, the promise rejects cleanly; treat rejection as a normal user choice rather than an application crash.

Exact-origin Web Wallet broker (uww-broker/1)

Section titled “Exact-origin Web Wallet broker (uww-broker/1)”

Universe Web Wallet never injects a global script into arbitrary sites. Authorized Universe web origins communicate with https://wallet.bitcoinuniverse.io/bridge.html over an exact-origin MessageChannel with sequenced, expiring requests:

  • On desktop browsers, signing requests open in a dedicated wallet window bound to the opener origin.
  • On mobile Safari and mobile browsers, flows use same-tab continuation and recoverRequest (recoverRequest:uww-broker-request/1) backed by IndexedDB metadata so an interrupted return restores the saved signature or txid without double-signing or re-broadcasting.

Four rules before writing integration code

Section titled “Four rules before writing integration code”
  1. Request connection only on an explicit user click. Never trigger a connection prompt on page load.
  2. Separate read-only connection from signing. Connecting shares the selected address only. It never authorizes spending or signing; every transaction or message opens its own review screen inside the wallet.
  3. Never ask for a recovery phrase or private key. No legitimate web integration ever collects key material.
  4. Check authorization and failure states honestly. In builds where a protocol is not release-authorized (such as the committed 2.0.0 baseline with 0 of 43 protocols authorized), the provider refuses signature requests before approval opens. Surface the refusal clearly instead of retrying in a loop.