Advanced features
The SDK supports advanced features that may be useful in specific use cases:
- Custom configuration enables fine-tuning the SDK behavior with various configuration options
- Custom leaf optimization allows defining the leaf optimization policy and controlling when it occurs in order to minimize payment latency
- Conditional payments are useful for implementing atomic cross-chain swaps
- Using an External Signer provides custom signing logic and enables integrating with hardware wallets, MPC protocols, or existing wallet infrastructure
- Server-side configuration covers the two ways the SDK runs on a server: multi-user, where each request builds a short-lived SDK and the host drives sync, claiming and event delivery, and treasury, a single long-lived wallet your own service owns
- Client signing lets a server drive payments while the key that approves them stays with the user, who reviews and signs each payment on their side
- Using Turnkey runs the wallet's signing inside a Turnkey secure enclave, so a server can operate wallets without holding key material