Keyboard shortcuts

Press โ† or โ†’ to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

SDK Documentation Spark
Request API Key

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 mode is the SDK profile for multi-tenant server deployments where each request builds an ephemeral SDK and the host orchestrates sync, claiming, and event delivery explicitly
  • 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
  • Send USDC/USDT to a recipient on an external chain