Thin GET /v2/parties/participant-id accessor exposing Canton participant_id introspection—helps correlate Canton tooling referencing hashed participant-id tokens versus textual party identifiers elsewhere.
Receiver: await canton.ledger.getParticipantId()
Setup
import { Canton } from '@fairmint/canton-node-sdk';
const canton = new Canton({
network: 'devnet',
provider: '5n',
partyId: 'OWN_PARTY_ID',
});
Minimal example
const pid = await canton.ledger.getParticipantId();
Parameters
No parameters — GetParticipantIdParams resolves void; invoke ().
Returns — GetParticipantIdResponse
Structured participant identifier payload defined via OpenAPI paths['/v2/parties/participant-id'].
Errors and pitfalls
Connectivity/authentication failures bubble ApiError similar to other GET helpers.
Auth and party
Bearer token scopes identical to ledger party introspection endpoints.