Use this page to find where each Ledger v2 call goes in Ledger 3.0. It covers every operation in the Ledger v2 API, including the unversioned v1 paths that Ledger v2 still served. Each row names the 3.0 endpoint and what changes for that call.
A path change is rarely the whole change. Every row is also subject to the contract-wide changes in Update Ledger Clients: typed metadata, the response envelope, the cluster-wide idempotency namespace, and postCommitVolumes in place of the other volume fields.
Read a path#
The tables show paths as the Ledger server serves them. Through a Stack gateway, the same endpoint sits under /api/ledger:
| Caller | Ledger v2 | Ledger 3.0 |
|---|---|---|
| Ledger server, called directly | /v2/{ledger}/transactions | /v3/{ledgerName}/transactions |
| Stack gateway | /api/ledger/v2/{ledger}/transactions | /api/ledger/v3/{ledgerName}/transactions |
Both forms reach the same endpoint. Replace the version segment and keep whichever prefix your client already uses. The ops endpoints /_info, /health, /livez, /readyz, and /clusterz have no version segment in 3.0.
Paths with no version segment, such as GET /{ledger}/transactions, belong to the Ledger v1 API.
Endpoints with the same outcome share a row. Each row has one of four statuses:
| Status | Meaning |
|---|---|
| Moved | Same operation at the 3.0 path. Only the contract-wide changes apply, plus any parameter the row says is no longer accepted. |
| Changed | A 3.0 equivalent exists, but its parameters, method, or behavior differ. Read the row before you switch. |
| Replaced | The capability now lives in a different resource model. The listed 3.0 endpoints cover it together. |
| Removed | No 3.0 HTTP equivalent. The row names the alternative, if one exists. Removed Capabilities explains the design decisions behind them. |
Use the map as data#
The same map is published as JSON: v2-to-v3-endpoint-map.json. Its operations object is keyed by "METHOD /path" in the form the tables use, so an exact lookup is one dictionary read:
A removed operation has an empty v3 list, and a replaced one can list several endpoints. Keys and targets are path templates, so matching concrete calls such as /api/ledger/v2/main/transactions/42 means stripping the gateway prefix and matching each template's {parameter} segments yourself.
Inventory what you actually call
Match a day of gateway access logs or audit logs, where http.request.path records every call as it was sent, against the map. The distinct results are your migration inventory: each Ledger v2 call your applications make, where it goes, and which ones need a design decision because they have no 3.0 equivalent.
Endpoint map#
Transactions#
| Ledger v2 → Ledger 3.0 | Status | What changes |
|---|---|---|
POST /{ledger}/script→ POST /v3/{ledgerName}/transactions | Changed | Send the program in the script field (plain and vars), or reference a saved program with scriptReference. preview is not accepted. Details. |
HEAD /{ledger}/transactionsHEAD /v2/{ledger}/transactions→ no equivalent | Removed | No count endpoint. GET /v3/{ledgerName}/stats returns the unfiltered transactionCount. |
GET /{ledger}/transactions→ GET /v3/{ledgerName}/transactions | Changed | reference, account, source, destination and metadata move into filter. startTime and endTime become startDate and endDate. Each filter needs its own index: TX_BUILTIN_INDEX_TIMESTAMP for the dates, TX_BUILTIN_INDEX_REFERENCE for reference, TX_BUILTIN_INDEX_ADDRESS, TX_BUILTIN_INDEX_SOURCE_ADDRESS and TX_BUILTIN_INDEX_DESTINATION_ADDRESS for account, source and destination respectively, and a metadata index for each metadata key. Paginate with cursor, which takes a v3 page token; v2 cursors and after are not accepted. Details. |
POST /{ledger}/transactions→ POST /v3/{ledgerName}/transactions | Changed | Returns 201 with the transaction under data.transaction. preview is not accepted. Details. |
GET /{ledger}/transactions/{txid}→ GET /v3/{ledgerName}/transactions/{transactionId} | Moved | |
POST /{ledger}/transactions/{txid}/metadata→ POST /v3/{ledgerName}/transactions/{transactionId}/metadata | Moved | |
POST /{ledger}/transactions/{txid}/revert→ POST /v3/{ledgerName}/transactions/{transactionId}/revert | Changed | disableChecks becomes force in the JSON body. |
POST /{ledger}/transactions/batch→ POST /v3/{ledgerName}/bulk | Changed | Send an array of CREATE_TRANSACTION elements. The failure model differs. Details. |
POST /v2/{ledger}/_bulk→ POST /v3/{ledgerName}/bulk | Changed | The path has no underscore. parallel and schemaVersion are not accepted, and the failure model differs. Details. |
GET /v2/{ledger}/transactions→ GET /v3/{ledgerName}/transactions | Changed | The JSON query body moves into the filter query parameter. Each filter needs its own index: TX_BUILTIN_INDEX_TIMESTAMP for timestamp, TX_BUILTIN_INDEX_REFERENCE for reference, TX_BUILTIN_INDEX_ADDRESS, TX_BUILTIN_INDEX_SOURCE_ADDRESS and TX_BUILTIN_INDEX_DESTINATION_ADDRESS for account, source and destination respectively, and a metadata index for each metadata key. expand, pit, order and sort are not accepted; reverse is kept. Paginate with cursor, which takes a v3 page token; v2 cursors and after are not accepted. Details. |
POST /v2/{ledger}/transactions→ POST /v3/{ledgerName}/transactions | Changed | dryRun, runtime and schemaVersion are not accepted, and force is read from the JSON body only. Use scriptReference to run a saved program. Returns 201. Details. |
GET /v2/{ledger}/transactions/{id}→ GET /v3/{ledgerName}/transactions/{transactionId} | Changed | expand and pit are not accepted. postCommitVolumes is always returned. |
POST /v2/{ledger}/transactions/{id}/metadata→ POST /v3/{ledgerName}/transactions/{transactionId}/metadata | Moved | dryRun and schemaVersion are not accepted. |
DELETE /v2/{ledger}/transactions/{id}/metadata/{key}→ DELETE /v3/{ledgerName}/transactions/{transactionId}/metadata/{key} | Moved | |
POST /v2/{ledger}/transactions/{id}/revert→ POST /v3/{ledgerName}/transactions/{transactionId}/revert | Changed | force and atEffectiveDate move from query parameters to the JSON body. dryRun and schemaVersion are not accepted. |
Accounts, balances, and volumes#
| Ledger v2 → Ledger 3.0 | Status | What changes |
|---|---|---|
HEAD /{ledger}/accountsHEAD /v2/{ledger}/accounts→ no equivalent | Removed | No count endpoint. Page through GET /v3/{ledgerName}/accounts if you need a total. |
GET /{ledger}/accounts→ GET /v3/{ledgerName}/accounts | Changed | address and metadata conditions move into filter. balance and balanceOperator are not accepted. Paginate with cursor, which takes a v3 page token; v2 cursors and after are not accepted. Details. |
GET /{ledger}/accounts/{address}→ GET /v3/{ledgerName}/accounts/{address} | Changed | Volumes are returned per asset and color. |
POST /{ledger}/accounts/{address}/metadata→ POST /v3/{ledgerName}/accounts/{address}/metadata | Moved | |
GET /{ledger}/balances→ GET /v3/{ledgerName}/accounts | Changed | Balances are part of each account's volumes. address moves into filter. Details. |
GET /{ledger}/aggregate/balances→ GET /v3/{ledgerName}/volumes | Changed | address moves into filter. useInsertionDate is not accepted. |
GET /v2/{ledger}/accounts→ GET /v3/{ledgerName}/accounts | Changed | The JSON query body moves into the filter query parameter. expand, pit and sort are not accepted; volumes are always returned. Paginate with cursor, which takes a v3 page token; v2 cursors and after are not accepted. Account date fields are gone. Details. |
GET /v2/{ledger}/accounts/{address}→ GET /v3/{ledgerName}/accounts/{address} | Changed | expand and pit are not accepted. Volumes are always returned, per asset and color. |
POST /v2/{ledger}/accounts/{address}/metadata→ POST /v3/{ledgerName}/accounts/{address}/metadata | Moved | dryRun and schemaVersion are not accepted. |
DELETE /v2/{ledger}/accounts/{address}/metadata/{key}→ DELETE /v3/{ledgerName}/accounts/{address}/metadata/{key} | Moved | |
GET /v2/{ledger}/aggregate/balances→ GET /v3/{ledgerName}/volumes | Changed | The account query moves into filter. pit and useInsertionDate are not accepted. |
GET /v2/{ledger}/volumes→ GET /v3/{ledgerName}/volumes→ GET /v3/{ledgerName}/accounts | Changed | v3 /volumes aggregates across matching accounts; read accounts for per-account volumes. groupBy becomes groupByPrefixes. startTime, endTime and insertionDate are not accepted. Details. |
Ledgers and ledger metadata#
| Ledger v2 → Ledger 3.0 | Status | What changes |
|---|---|---|
GET /{ledger}/_infoGET /v2/{ledger}/_info→ GET /v3/{ledgerName} | Changed | Returns the ledger's configuration and metadata. Storage migration status is not exposed. |
GET /{ledger}/statsGET /v2/{ledger}/stats→ GET /v3/{ledgerName}/stats | Changed | No account count. Returns transactionCount, logCount and usage counters. |
GET /v2→ GET /v3/ | Changed | Pages by name with pageSize, cursor (a v3 page token) and reverse. includeDeleted and sort are not accepted. |
GET /v2/{ledger}→ GET /v3/{ledgerName} | Moved | |
POST /v2/{ledger}→ POST /v3/{ledgerName} | Changed | bucket and features are not accepted. The body takes metadata, mode, mirrorSource, defaultEnforcementMode, initialSchema and accountTypes. Returns 201. Details. |
PUT /v2/{ledger}/metadata→ POST /v3/{ledgerName}/metadata | Changed | The method changes from PUT to POST. |
DELETE /v2/{ledger}/metadata/{key}→ DELETE /v3/{ledgerName}/metadata/{key} | Moved |
Ledger Schema, mapping, and queries#
Ledger 3.0 has no Ledger Schema. Its parts become four independent resources: account types, typed metadata, the Numscript library, and prepared queries. None of them is versioned. Replace Ledger Schema workflows walks through the change.
| Ledger v2 → Ledger 3.0 | Status | What changes |
|---|---|---|
GET /{ledger}/mappingPUT /{ledger}/mapping→ no equivalent | Removed | Ledger v1 mapping contracts have no equivalent. Account types validate address patterns. Details. |
POST /v2/{ledger}/schemas/{version}→ PUT /v3/{ledgerName}/metadata-schema/{targetType}/{key}→ POST /v3/{ledgerName}/account-types→ PUT /v3/{ledgerName}/numscripts/{name}→ POST /v3/{ledgerName}/prepared-queries | Replaced | Write each part of the schema to its own resource. There is no version to insert. Details. |
GET /v2/{ledger}/schemas/{version}→ GET /v3/{ledgerName}/metadata-schema→ GET /v3/{ledgerName}/account-types→ GET /v3/{ledgerName}/numscripts/{name}→ GET /v3/{ledgerName}/prepared-queries | Replaced | Read each resource's current state. There is no version to select. Details. |
GET /v2/{ledger}/schemas→ GET /v3/{ledgerName}/metadata-schema→ GET /v3/{ledgerName}/account-types→ GET /v3/{ledgerName}/numscripts→ GET /v3/{ledgerName}/prepared-queries | Replaced | There is no list of schema versions. List each resource instead. Details. |
POST /v2/{ledger}/queries/{id}/run→ POST /v3/{ledgerName}/prepared-queries/{queryName}/execute | Replaced | Schema-defined queries become prepared queries, created with POST /v3/{ledgerName}/prepared-queries. Details. |
Logs#
| Ledger v2 → Ledger 3.0 | Status | What changes |
|---|---|---|
GET /{ledger}/logs→ GET /v3/{ledgerName}/logs | Changed | startTime and endTime become startDate and endDate, which require the builtin LOG_BUILTIN_INDEX_DATE index. Paginate with cursor, which takes a v3 page token; v2 cursors and after are not accepted. |
GET /v2/{ledger}/logs→ GET /v3/{ledgerName}/logs | Changed | LOG_BUILTIN_INDEX_DATE is required to filter by date (startDate/endDate, or date in filter). pit and sort are not accepted. Paginate with cursor, which takes a v3 page token; v2 cursors and after are not accepted. |
POST /v2/{ledger}/logs/importPOST /v2/{ledger}/logs/export→ no equivalent | Removed | Use a mirror ledger to bring Ledger v2 history into v3. Details. |
Exporters and pipelines#
| Ledger v2 → Ledger 3.0 | Status | What changes |
|---|---|---|
GET /v2/_/exportersGET /v2/_/exporters/{exporterID}GET /v2/{ledger}/pipelinesGET /v2/{ledger}/pipelines/{pipelineID}→ GET /v3/_/events-sinks | Replaced | Exporters and pipelines are replaced by event sinks. HTTP lists sinks and their status. Details. |
POST /v2/_/exportersPOST /v2/{ledger}/pipelines→ POST /v3/_/events-sinks | Replaced | Exporters and pipelines are replaced by instance-wide event sinks. Create a sink with a protobuf JSON SinkConfig; requires ledger:OpsWrite. This is not a ledger-scoped pipeline. Details. |
DELETE /v2/_/exporters/{exporterID}DELETE /v2/{ledger}/pipelines/{pipelineID}→ DELETE /v3/_/events-sinks/{sinkName} | Replaced | Remove the replacement instance-wide sink by name; requires ledger:OpsWrite. A nonempty controllerId is an optional ownership precondition; omission permits unconditional removal. Details. |
PUT /v2/_/exporters/{exporterID}→ no equivalent | Removed | Event sinks have no in-place HTTP update operation. Remove with DELETE /v3/_/events-sinks/{sinkName} and recreate with POST /v3/_/events-sinks using a new configuration; these are separate, non-atomic operations. Details. |
POST /v2/{ledger}/pipelines/{pipelineID}/reset→ no equivalent | Removed | Event sinks have no HTTP reset operation. Creation and removal use POST /v3/_/events-sinks and DELETE /v3/_/events-sinks/{sinkName}; they do not preserve the v2 reset semantics. Details. |
POST /v2/{ledger}/pipelines/{pipelineID}/start→ no equivalent | Removed | Event sinks have no HTTP start operation. Creation and removal use POST /v3/_/events-sinks and DELETE /v3/_/events-sinks/{sinkName}; they do not preserve the v2 start semantics. Details. |
POST /v2/{ledger}/pipelines/{pipelineID}/stop→ no equivalent | Removed | Event sinks have no HTTP stop operation. Creation and removal use POST /v3/_/events-sinks and DELETE /v3/_/events-sinks/{sinkName}; they do not preserve the v2 stop semantics. Details. |
Server info, metrics, and buckets#
| Ledger v2 → Ledger 3.0 | Status | What changes |
|---|---|---|
GET /_info→ GET /_info | Changed | Unversioned build information as flat JSON with no data envelope. Storage configuration is not returned. |
GET /_/info→ GET /_info | Changed | Unversioned: the path has no /v3 segment. Flat JSON with no data envelope. |
GET /_/metrics→ no equivalent | Removed | No HTTP metrics endpoint. Ledger exports metrics through OpenTelemetry. Details. |
DELETE /v2/_/buckets/{bucket}→ no equivalent | Removed | No bucket delete route. DELETE /v3/{ledgerName} deletes a single ledger. |
POST /v2/_/buckets/{bucket}/restore→ no equivalent | Removed | No bucket restore route. |
Continue with Update Ledger Clients to change each workflow.