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

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
  • SOCKS5 proxy sends the connections the SDK opens through a SOCKS5 proxy, such as a local Tor daemon
  • 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
  • Managing webhooks delivers real-time notifications of wallet events, such as completed payments or on-chain deposits, to a URL you register
  • Unilateral exit moves funds onto the Bitcoin blockchain without the Spark operators, as a safety net

If you're running the SDK on a server, see Running on a server.