Ledger balances

Balance snapshots

Capture a balance snapshot with the Java SDK.

POST/balances-snapshots

Use blnk.ledgerBalances().createSnapshot for this operation.

Call the method

ApiResponse<JsonNode> response = blnk.ledgerBalances().createSnapshot(
    CreateBalanceSnapshotRequest.create().batchSize(1000)
);
FieldTypeDescription
batch_sizeNumberOptional. 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"
}
FieldTypeDescription
messageStringStatus message when the snapshot job starts.