Getting started¶
Install¶
Download an archive for your platform from the
releases page, extract it and put
formance2blnk on your PATH.
Check it works:
Try it without servers¶
The repository includes in-memory fakes of both APIs. This runs a full replay and reconciliation in a second:
Replayed 5 Formance transactions into 7 Blnk transactions (2 ledgers, 3 balances)
Reconciliation: ok=true checked=5 matched=5
Second run wrote 0 transactions
Your first real migration¶
1. Create a configuration¶
Edit the URLs, the list of Formance ledgers and the mapping rules. Secrets can come from the environment:
{
"formance": { "url": "http://localhost:3068", "ledgers": ["main"], "token": "${FORMANCE_TOKEN:-}" },
"blnk": { "url": "http://localhost:5001", "api_key": "${BLNK_API_KEY:-}" },
"mapping": { "rules": [ { "match": "users:*:wallet", "ledger": "Customer Wallets" } ] },
"migration": { "mode": "replay" }
}
2. Validate¶
This checks required fields, unknown keys, mapping rule syntax and mode settings without contacting either server, and prints the configuration with secrets redacted.
3. Plan (dry run)¶
plan reads everything from Formance and computes exactly what would be written — ledgers, balances, transactions and skipped postings — without writing to Blnk or the state file.
4. Migrate¶
Progress is logged periodically. If the run stops for any reason, run the same command again; it resumes from the checkpoint.
5. Reconcile¶
Exit code 0 means every balance matches. See Reconciliation for what is compared.
Run against staging first
Point the tool at a staging Blnk instance and a copy (or read replica) of your Formance data, migrate, reconcile, and only then plan the production cutover.