Sphere SDK composes wallet storage, wallet-api payments, market intents, and Nostr messaging for Unicity agent applications.
Overview
Sphere SDK is a modular TypeScript library for Unicity wallet workflows. It covers BIP39 and BIP32 key handling, certified token transfers through wallet-api, encrypted payment requests, signed market intents, and Nostr-based messaging and group chat.
Applications assemble browser or Node providers for storage, transport, and oracle access, then attach wallet-api configuration because payments move only through that vertical. The Connect protocol lets dApps talk to a hosted wallet iframe or a Node WebSocket bridge.
Transfers emphasize durable server-side intents with crash-safe resume under a single transferId. Documentation details network naming consistency, error codes for partially committed sends, and messaging-only wallets that omit payment composition.
Quick starts exist for browser, Node.js 22+, dApp integration, and a separate CLI repository that currently builds from a local checkout rather than npm.
Key features
- BIP39 and BIP32 wallet derivation
- Wallet-api certified transfers
- Encrypted payment requests
- Signed intent marketplace
- NIP-17 and NIP-29 messaging
- Connect iframe and WebSocket dApps
- Browser and Node provider factories
- Multi-address HD accounts
Use cases
- Building agent commerce apps
- Embedding wallet payments in dApps
- Peer payment request flows
- Relay-based group chat bots