Skip to main content

JSON Ledger API

POST /v2/updates/trees

POST/v2/updates/trees

Removed in 3.7. Historical definition from 3.6.

Query update transactions tree list (blocking call). Deprecated since Canton 3.4: disabled by default since Canton 3.6 (re-enable temporarily with canton.participants.<participant>.features.deprecated.enable-deprecated-endpoints-34 = true) and will be removed in Canton 3.7. Use POST /v2/updates instead. Notice: This endpoint should be used for small results set.

Protocol Details

Operation IDpostV2UpdatesTrees
AuthenticationBearer token
Published3.6

Inputs

Query parameters

limitinteger (int64)
maximum number of elements to return, this param is ignored if is bigger than server setting
stream_idle_timeout_msinteger (int64)
timeout to complete and send result if no new elements are received (for open ended streams)

Body

application/json
beginExclusiveinteger (int64)required
Exclusive lower bound offset of the requested ledger section (non-negative integer). The response will only contain transactions whose offset is strictly greater than this. If set to zero, the lower bound is set to the beginning of the ledger. If the participant has been pruned, this parameter must be greater or equal than the pruning offset. Required
endInclusiveinteger (int64)
Inclusive higher bound offset of the requested ledger section. If specified the response will only contain transactions whose offset is less than or equal to this. If not specified, - the descending_order must not be selected, - the stream will not terminate. Optional
filterTransactionFilter
Deprecated: disabled unless canton.participants.&lt;participant&gt;.features.deprecated.enable-deprecated-parameters-34 = true; it will be removed in the Canton version 3.7.0. Used both for filtering create and archive events as well as for filtering transaction trees.
verboseboolean
Deprecated: disabled unless canton.participants.&lt;participant&gt;.features.deprecated.enable-deprecated-parameters-34 = true; it will be removed in the Canton version 3.7.0. If enabled, values served over the API will contain more information than strictly necessary to interpret the data. In particular, setting the verbose flag to true triggers the ledger to include labels, record and variant type ids for record fields. Optional for backwards compatibility, if defined update_format must be unset
updateFormatUpdateFormat
A format specifying what updates to include and how to render them.
descendingOrderboolean
If set, the stream will populate the elements in descending order. Optional

Outputs

200

application/json
valueJsGetUpdateTreesResponse[]required

400

text/plain
valuestringrequired

default

application/json
codestringrequired
causestringrequired
correlationIdstring
traceIdstring
contextMap_Stringrequired
resourcesTuple2_String_String[]
errorCategoryinteger (int32)required
grpcCodeValueinteger (int32)
retryInfostring
definiteAnswerboolean

History

Removed in3.7

Last available in 3.6. Retained for historical reference.

Updated3.6

The POST /v2/updates/trees operation changed in this snapshot.

Updated3.5

The POST /v2/updates/trees operation changed in this snapshot.

Deprecated3.4