Key principles
- The SDK wraps the Cherp API, not the chain. It handles the build → sign → submit flow and provides real-time status updates.
- The SDK never handles wallet connection. You wrap your wallet in a
PaymentWalletinterface and pass it to the SDK. The wallet must be ready to sign before invoking the SDK. - Private keys never leave the device. The SDK calls
wallet.signTransaction()locally, then submits the signed blob to Cherp for broadcast.
Wallet interface
You must implement thePaymentWallet interface for your wallet provider:
Initialization
Status context
Thecontext object passed to onStatusChange drives UX without requiring chain-specific logic:
Next steps
React Native
TypeScript SDK for React Native apps.
iOS
Swift SDK for iOS apps.
Android
Kotlin SDK for Android apps.