The stack, in one picture.

Apps ask wallets for permissioned capabilities. Wallets keep custody with users and coordinate with overlays, storage, messaging, payments, and the BSV chain.

Understand the model
Layered BSV app architecture with apps, BRC-100 wallets, wallet services, overlays, storage, messaging, and the BSV blockchain

The first integration is small.

Connect to the user's wallet, wait for authentication, then ask for one approved capability.

1import { WalletClient } from '@bsv/sdk'
2
3const wallet = new WalletClient('auto')
4await wallet.waitForAuthentication()
5
6const { publicKey } = await wallet.getPublicKey({
7  identityKey: true
8})
9
10console.log({ publicKey })
Copied!