Revert a transaction
Changed onReverts a transaction by creating a reverse transaction that undoes its effects. Requires ledger:write scope. The body is optional; an absent or empty body uses default options. Supplied options and metadata are decoded for both known-length and HTTP/1.1 chunked requests. Malformed or truncated JSON, extra values, trailing non-whitespace and options of the wrong JSON type (for example "atEffectiveDate": "true" or a non-object metadata) return 400 before applying the revert. A JSON null option uses its default. The complete body, including trailing whitespace, counts towards the 4 MiB limit; exceeding it returns 413.
Request
- Base URLhttp://localhost:9000
- URLhttp://localhost:9000/v3/{ledgerName}/transactions/{transactionId}/revert
- Auth
- HTTP bearer
- or none
Path parameters
Name of the ledger
Transaction ID
Headers
Render all response Uint256, BigUint and SignedBigInt values as canonical decimal strings, regardless of business meaning, including posting amounts, volume input/output and balances. Ordinary integer IDs/counts, metadata and explicitly string-encoded counters keep their existing representation. Case-insensitive true, yes, y and 1 enable this option, matching Ledger v2. Whitespace is not trimmed. Omission and every other value retain JSON number tokens. This affects only this response, including nested objects, maps, arrays, transaction/log/cursor and bulk results. Request decoding is unchanged.
Idempotency key for the request
Request body
Response
Transaction reverted successfully
Changes
- info
api operation id
revertTransactionremoved and replaced withv3RevertTransaction
- info
- warning
removed the optional property
/from the response with the status
- warning