/v2/contracts/contract-by-id
Looking up contract data by contract ID. This endpoint is experimental / alpha, therefore no backwards compatibility is guaranteed. This endpoint must not be used to look up contracts which entered the participant via party replication or repair service.
Documentation Index
Fetch the complete documentation index at: https://cantonfoundation-issue-480-canton-release-line-source-main.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Ledger API standard JWT token
Body
The ID of the contract.
Must be a valid LedgerString (as described in value.proto).
Required
The list of querying parties The stakeholders of the referenced contract must have an intersection with any of these parties to return the result. If no querying_parties specified, all possible contracts could be returned.
Optional: can be empty
Response
The representative_package_id will be always set to the contract package ID, therefore this endpoint should not be used to lookup contract which entered the participant via party replication or repair service. The witnesses field will contain only the querying_parties which are also stakeholders of the contract as well. The following fields of the created event cannot be populated, so those should not be used / parsed:
- offset
- node_id
- created_event_blob
- interface_views
- acs_delta
Required