Ledger balances
Balance snapshots
Capture a balance snapshot with the Java SDK.
POST
/balances-snapshotsUse blnk.ledgerBalances().createSnapshot for this operation.
Call the method
ApiResponse<JsonNode> response = blnk.ledgerBalances().createSnapshot(
CreateBalanceSnapshotRequest.create().batchSize(1000)
);
| Field | Type | Description |
|---|---|---|
batch_size | Number | Optional. Server default is 1000. |
Wait for completion
Snapshot jobs run asynchronously. Core returns immediately with a status message while processing continues in the background.
Response
{
"message": "Snapshotting in progress. should be completed shortly"
}
| Field | Type | Description |
|---|---|---|
message | String | Status message when the snapshot job starts. |