Guides
Connecting
import { createWallet } from '@bsv/simple/browser'
const wallet = await createWallet()With Custom Defaults
const wallet = await createWallet({
network: 'main',
tokenBasket: 'my-tokens', // default basket for tokens
messageBoxHost: 'https://messagebox.babbage.systems',
registryUrl: '/api/identity-registry'
})Wallet Info
// Identity key (compressed public key, 66 hex chars)
const key = wallet.getIdentityKey()
// '02a1b2c3d4...'
// P2PKH address
const address = wallet.getAddress()
// '1A2b3C4d5E...'
// Status object
const status = wallet.getStatus()
// { isConnected: true, identityKey: '02a1b2...', network: 'main' }
// Full info object
const info = wallet.getWalletInfo()
// { identityKey, address, network, isConnected }Key Derivation
Generic Derivation
BRC-29 Payment Key
Accessing the Underlying Client
Default Configuration
Setting
Default
Description
Type Reference
Last updated
