What is the Wallets SDK?
The Crossmint Wallets SDK is a TypeScript library that enables developers to easily create and manage custodial and non-custodial smart wallets across multiple blockchain networks including Solana, EVM chains (Ethereum, Polygon, Base, etc.), and Stellar.Key Features
- Multi-chain support: Create and manage wallets on Solana, EVM chains, and Stellar
- Smart wallet functionality: Built-in support for delegated signers, gasless transactions, and batch operations
- Flexible authentication: Email, phone, passkeys, external wallets, or API key authentication
- Simple token operations: Check balances, send tokens, and manage transactions with minimal code
- Chain-specific transactions: Full support for custom transactions on each blockchain
- Activity tracking: Monitor wallet activity and transaction history
Supported Chains
EVM Chains
Ethereum, Polygon, Base, Arbitrum, Optimism, and more
Solana
Solana mainnet and devnet
Stellar
Stellar mainnet and testnet
Installation
Quick Start
Here’s a minimal example to get you started:Core Concepts
Wallet
AWallet object represents a smart wallet on a specific blockchain. It provides methods for:
- Checking balances
- Sending tokens
- Managing delegated signers
- Viewing activity
Signer
Signers authenticate and authorize transactions. The SDK supports multiple signer types:- Email: Email-based authentication with OTP
- Phone: Phone-based authentication with OTP
- Passkey: WebAuthn/FIDO2 passkey authentication (EVM only)
- External Wallet: Connect existing wallets (MetaMask, Phantom, etc.)
- API Key: Server-side authentication
Chain-Specific Wallets
For advanced operations, cast the baseWallet to chain-specific types:
EVMWallet: EVM-specific operations (signing messages, typed data, custom transactions)SolanaWallet: Solana transaction handlingStellarWallet: Stellar transaction and contract calls
Common Use Cases
Token Transfers
Send USDC, ETH, SOL, or any token to users
Check Balances
Query native tokens, USDC, and custom token balances
Delegated Signers
Add multiple signers to a single wallet
Custom Transactions
Execute smart contract calls and custom transactions
Next Steps
Getting Started
Set up the SDK and create your first wallet
Wallet Operations
Learn about balances, transfers, and activity tracking
EVM Wallets
Work with EVM chains and smart contracts
Solana Wallets
Build on Solana with custom transactions