Preview. Stack v4.0 has not been released, and what is documented here can still change before it does. The current release is v3.2, which does not have this page.Go to Ledger in v3.2
Ledger

Endpoint Map

Every Ledger v2 HTTP endpoint and its Ledger 3.0 equivalent, as a table and as data you can load.

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:

CallerLedger v2Ledger 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:

StatusMeaning
MovedSame operation at the 3.0 path. Only the contract-wide changes apply, plus any parameter the row says is no longer accepted.
ChangedA 3.0 equivalent exists, but its parameters, method, or behavior differ. Read the row before you switch.
ReplacedThe capability now lives in a different resource model. The listed 3.0 endpoints cover it together.
RemovedNo 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:

json
{
  "operations": {
    "GET /v2/{ledger}/transactions": {
      "operationId": "v2ListTransactions",
      "status": "changed",
      "v3": ["GET /v3/{ledgerName}/transactions"],
      "notes": "The JSON query body moves into the `filter` query parameter. ...",
      "docs": "/modules/ledger/querying/filters-and-pagination"
    }
  }
}

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.0StatusWhat changes
POST /{ledger}/script
→ POST /v3/{ledgerName}/transactions
ChangedSend the program in the script field (plain and vars), or reference a saved program with scriptReference. preview is not accepted. Details.
HEAD /{ledger}/transactions
HEAD /v2/{ledger}/transactions
→ no equivalent
RemovedNo count endpoint. GET /v3/{ledgerName}/stats returns the unfiltered transactionCount.
GET /{ledger}/transactions
→ GET /v3/{ledgerName}/transactions
Changedreference, 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
ChangedReturns 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
ChangeddisableChecks becomes force in the JSON body.
POST /{ledger}/transactions/batch
→ POST /v3/{ledgerName}/bulk
ChangedSend an array of CREATE_TRANSACTION elements. The failure model differs. Details.
POST /v2/{ledger}/_bulk
→ POST /v3/{ledgerName}/bulk
ChangedThe path has no underscore. parallel and schemaVersion are not accepted, and the failure model differs. Details.
GET /v2/{ledger}/transactions
→ GET /v3/{ledgerName}/transactions
ChangedThe 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
ChangeddryRun, 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}
Changedexpand and pit are not accepted. postCommitVolumes is always returned.
POST /v2/{ledger}/transactions/{id}/metadata
→ POST /v3/{ledgerName}/transactions/{transactionId}/metadata
MoveddryRun 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
Changedforce and atEffectiveDate move from query parameters to the JSON body. dryRun and schemaVersion are not accepted.

Accounts, balances, and volumes#

Ledger v2 → Ledger 3.0StatusWhat changes
HEAD /{ledger}/accounts
HEAD /v2/{ledger}/accounts
→ no equivalent
RemovedNo count endpoint. Page through GET /v3/{ledgerName}/accounts if you need a total.
GET /{ledger}/accounts
→ GET /v3/{ledgerName}/accounts
Changedaddress 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}
ChangedVolumes 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
ChangedBalances are part of each account's volumes. address moves into filter. Details.
GET /{ledger}/aggregate/balances
→ GET /v3/{ledgerName}/volumes
Changedaddress moves into filter. useInsertionDate is not accepted.
GET /v2/{ledger}/accounts
→ GET /v3/{ledgerName}/accounts
ChangedThe 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}
Changedexpand 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
MoveddryRun 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
ChangedThe account query moves into filter. pit and useInsertionDate are not accepted.
GET /v2/{ledger}/volumes
→ GET /v3/{ledgerName}/volumes
→ GET /v3/{ledgerName}/accounts
Changedv3 /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.0StatusWhat changes
GET /{ledger}/_info
GET /v2/{ledger}/_info
→ GET /v3/{ledgerName}
ChangedReturns the ledger's configuration and metadata. Storage migration status is not exposed.
GET /{ledger}/stats
GET /v2/{ledger}/stats
→ GET /v3/{ledgerName}/stats
ChangedNo account count. Returns transactionCount, logCount and usage counters.
GET /v2
→ GET /v3/
ChangedPages 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}
Changedbucket 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
ChangedThe 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.0StatusWhat changes
GET /{ledger}/mapping
PUT /{ledger}/mapping
→ no equivalent
RemovedLedger 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
ReplacedWrite 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
ReplacedRead 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
ReplacedThere is no list of schema versions. List each resource instead. Details.
POST /v2/{ledger}/queries/{id}/run
→ POST /v3/{ledgerName}/prepared-queries/{queryName}/execute
ReplacedSchema-defined queries become prepared queries, created with POST /v3/{ledgerName}/prepared-queries. Details.

Logs#

Ledger v2 → Ledger 3.0StatusWhat changes
GET /{ledger}/logs
→ GET /v3/{ledgerName}/logs
ChangedstartTime 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
ChangedLOG_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/import
POST /v2/{ledger}/logs/export
→ no equivalent
RemovedUse a mirror ledger to bring Ledger v2 history into v3. Details.

Exporters and pipelines#

Ledger v2 → Ledger 3.0StatusWhat changes
GET /v2/_/exporters
GET /v2/_/exporters/{exporterID}
GET /v2/{ledger}/pipelines
GET /v2/{ledger}/pipelines/{pipelineID}
→ GET /v3/_/events-sinks
ReplacedExporters and pipelines are replaced by event sinks. HTTP lists sinks and their status. Details.
POST /v2/_/exporters
POST /v2/{ledger}/pipelines
→ POST /v3/_/events-sinks
ReplacedExporters 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}
ReplacedRemove 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
RemovedEvent 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
RemovedEvent 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
RemovedEvent 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
RemovedEvent 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.0StatusWhat changes
GET /_info
→ GET /_info
ChangedUnversioned build information as flat JSON with no data envelope. Storage configuration is not returned.
GET /_/info
→ GET /_info
ChangedUnversioned: the path has no /v3 segment. Flat JSON with no data envelope.
GET /_/metrics
→ no equivalent
RemovedNo HTTP metrics endpoint. Ledger exports metrics through OpenTelemetry. Details.
DELETE /v2/_/buckets/{bucket}
→ no equivalent
RemovedNo bucket delete route. DELETE /v3/{ledgerName} deletes a single ledger.
POST /v2/_/buckets/{bucket}/restore
→ no equivalent
RemovedNo bucket restore route.

Continue with Update Ledger Clients to change each workflow.