Skip to content

Reference

ledger.getTransactionTreeById

GET /v2/updates/transaction-tree-by-id/{update-id} — transaction tree by update id with party merge semantics.

GET path substitutes {update-id}. GetTransactionTreeByIdParams: updateId, optional verbose, parties. SDK merges client.getPartyId() with parties for parties query repeats.

Receiver: await canton.ledger.getTransactionTreeById

Setup

import { Canton } from '@fairmint/canton-node-sdk';

const canton = new Canton({
  network: 'devnet',
  provider: '5n',
  partyId: 'OWN_PARTY_ID',
});

Minimal example

const tree = await canton.ledger.getTransactionTreeById({
  updateId: 'UPDATE_ID',
});

Parameters — GetTransactionTreeByIdParams

updateId, optional verbose, parties.

Returns — GetTransactionTreeByIdResponse

Nested exercise/create/archive structure OpenAPI typing.

Auth and party

Merged parties must align read-as grants.

See also

Source

operations/v2/updates/get-transaction-tree-by-id.ts