IBIRAPAY Spark: integration guide
Version 2026-11-27 (revision 4: the Enterprise 30 free days, prorated first paid month, priority and active wallet described as the system applies them, and the support channel). For developers who add a self-custodied Spark wallet (a BIP-39 mnemonic that sends and receives Lightning payments) to an app, using the Breez Spark SDK against the IBIRAPAY Spark network.
| Item | Value |
|---|---|
| SDK | ibirapay/spark-sdk, a fork of breez/spark-sdk with the patches our network needs |
| Repository | https://github.com/ibirapay/spark-sdk (public) |
| Pinned commit (use exactly this) | d2ca7cfc6a8efbd15328b05c3fb617e0f7e781ef |
| Network | Bitcoin mainnet, IBIRAPAY's own Spark deployment: 3 signing operators (threshold 2 of 3) and one SSP |
| Keys | The mnemonic stays on your device or server. IBIRAPAY never sees it |
| Minimum payment | 330 sats, both directions (smaller amounts are refused) |
| Breez API key | Not needed. Do not set one |
| Access | Wallets inside your users' apps connect directly, with no key. Your server-side (central) wallet uses an API key and secret, a SOCKS5 login that you create yourself at https://ibirapay.com/spark; it goes in the SDK's proxy setting (section 5.1) |
| Plans | Free: connect with no account. Enterprise: an account at https://ibirapay.com/spark, free for 30 days from activation; your backend registers your wallets (section 5.5) and, until the end of the first paid month, they keep sending Lightning payments when the SSP's Lightning capacity is low (section 9). Section 5.4 compares the two |
| Lightning send refused | LIQUIDITY_RESERVED in the error of prepareSendPayment: a wallet without priority (Free, or Enterprise after the first paid month), while the SSP's Lightning capacity is low (section 9) |
| Required setting | leafOptimizationConfig: autoEnabled: false (section 5.3). With the default, received funds are locked for a while and the balance reads 0 |
| Lightning Address / LNURL receive | Not available on this deployment (lnurl_domain is unset) |
Use the pinned commit, not Breez's releases. The fork contains fixes that the IBIRAPAY operators rely on (a fallback for operators that do not return a leaf field, durable single-use signing nonces, a forced sync that reports failure instead of silently returning stale balances, and a mainnet mode that needs no Breez key). Breez's precompiled binaries do not have them. Build the library from source, as in section 4.
Trust model, in one sentence: you hold the keys, and IBIRAPAY runs the Spark operators and the SSP. A balance can only be spent with your mnemonic, but payments need our servers to be online.
What IBIRAPAY has verified
| Area | Status |
|---|---|
| Flutter on Android | Built, and used in IBIRAPAY's own point-of-sale terminals (the Caixa app), where Spark runs with small limits |
| Linux x86_64 | Built from this commit in Docker with a pinned toolchain; used in the Caixa desktop app |
| Receive Lightning (BOLT11) | Verified on 2026-11-09 with a new wallet through the proxy: 5,000 sats received, balance kept after a restart (with autoEnabled: false) |
| Send Lightning (BOLT11) to an external invoice | Verified on 2026-11-09: a new wallet paid a 600 sat invoice created on a separate mainnet Lightning node; the node showed it SETTLED and the wallet balance went 5,000 to 4,400. Tested with a client built from the pinned commit |
| API key and proxy | Verified on 2026-11-09: a valid API key connects and is metered; a wrong secret or an unreachable proxy makes every network call fail (the SDK does not fall back to a direct connection) |
| Lightning liquidity reserve | Verified on 2026-11-10 with a client built from the pinned commit: with the SSP's Lightning capacity below the reserve, a wallet that was not on the Enterprise list was refused with LIQUIDITY_RESERVED, and a wallet on the list paid a Lightning invoice, which the receiving node showed SETTLED |