Why autoEnabled: false is required
By default the SDK re-splits every received amount into small power-of-two pieces (1, 2, 4, 8, ... sats). The IBIRAPAY SSP refuses to
create pieces under 330 sats, so that swap fails and the received funds stay locked for a while: getInfo shows a balance of 0
and a send fails with "insufficient funds". In our tests the funds came back by themselves after some minutes, but a user would
see an empty wallet. With autoEnabled: false there is no swap after a receive, and the balance is kept across restarts (verified
on 2026-11-09). Payments still swap when they need change; keep amounts and the remaining change at 330 sats or more.
- Do not set the
apiKeyfield ofConfig. That field is a Breez key, not the IBIRAPAY API key. Your IBIRAPAY API key and secret go inproxy(usernameandpassword, section 5.1). A mainnet configuration without the BreezapiKeyruns against the configured operators and SSP only. - One live instance per process. Reuse it. To switch mnemonic,
await sdk.disconnect()first, then connect again with a different directory. Opening the same directory twice is an error. - The first connect syncs with the operators and can take a while. Show progress; do not time it out at a few seconds.
- Call
await sdk.disconnect()when the app shuts down cleanly.