
What is the B3 SDK?
The B3 SDK (@b3dotfun/sdk
) is a unified TypeScript SDK that provides everything you need to build applications on the B3 ecosystem. It combines powerful cross-chain payment infrastructure with seamless authentication, all wrapped in developer-friendly React components and headless services.
Architecture
The SDK is organized into focused modules designed for maximum flexibility and ease of use:AnySpend Module
Cross-chain execution engine for payments, swaps, and NFT minting across multiple blockchains.
Global Account Module
B3 Global Accounts authentication and user management with social login and session keys.
Module Structure
Each module contains organized, purpose-built components:react/
- React components and hooks for easy integrationservices/
- Headless TypeScript services for custom implementationstypes/
- Comprehensive TypeScript definitionsutils/
- Utility functions and helpersconstants/
- Configuration and constants
Platform Support
Feature | React Web | React Native | Headless |
---|---|---|---|
AnySpend | ✅ | ❌ | ✅ |
Global Accounts | ✅ | ✅ | ✅ |
Shared Utils | ✅ | ✅ | ✅ |
Installation
CSS Styles
Import the default styles for the best visual experience:Quick Start
Cross-Chain Payments with AnySpend
Authentication with Global Accounts
NFT Minting
Key Features
Universal Payment Infrastructure
Any Token Payments
Accept payments in any cryptocurrency with automatic conversion to your preferred token.
Cross-Chain Swaps
Enable seamless token swaps across 20+ supported blockchains with optimal routing.
NFT Minting
One-click NFT minting buttons that accept payments in any token from any chain.
Fiat Onramps
Integrated fiat-to-crypto onramps for users without existing cryptocurrency.
Seamless Authentication
Social Login
Google, Discord, and other social providers with instant onboarding.
Session Keys
Secure session management with granular permissions for enhanced UX.
Cross-Platform Identity
Single identity that works across all B3 applications and games.
Smart Accounts
Built-in smart account abstraction for gasless transactions.
Headless TypeScript Services
For developers who need maximum control, all functionality is available through headless services:AnySpend Services
Global Account Services
Support & Community
Developer Support
Get help integrating the B3 SDK into your project.
Discord Community
Join the B3 developer community for support and discussions.
GitHub
View source code, report issues, and contribute to the SDK.
What’s Next?
- Install the SDK and import the styles
- Set up AnySpend for cross-chain payments
- Configure Global Accounts for user authentication
- Explore examples and implementation patterns
- Join the community for support and updates