Skip to content

Reference

ValidatorApiClient — reference

Hand-written pages for each public method on ValidatorApiClient (`canton.validator`), grouped by functional area.

ValidatorApiClient is the OAuth-backed interface to the validator HTTP API: onboarding, ANS, scan-proxy reads (Amulet rules, mining rounds, token-standard registry), and wallet flows (balance, traffic purchase, transfer offers, token-standard transfers).

Each page follows the same shape: narrative intro, a minimal TypeScript example, parameters field-by-field, response highlights, pitfalls, auth notes, and a link into the SDK operation source.

Import

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

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

Administration — users, external party topology, identities

MethodSummary
createUserOnboard a named user, optional fixed party ID
dumpParticipantIdentitiesParticipant identity dump (admin diagnostics)
generateExternalPartyTopologyTopology txs for external-key parties (sign offline)
getExternalPartyBalanceBalance view for an external party
listExternalPartySetupProposalsPending external-party setup proposals
listUsersList onboarded usernames
submitExternalPartyTopologySubmit signed topology from generation step
registerNewUserOne-time validator API registration
getValidatorUserInfoPublic validator operator party/name/featured flag

ANS (Application Name Service)

MethodSummary
createAnsEntryRegister name, URL, description
getAnsRulesANS governance rules (optional cache hints)
listAnsEntriesCatalog listing
lookupAnsEntryByNameResolve by ANS name
lookupAnsEntryByPartyResolve by party ID
MethodSummary
getAmuletRulesActive Amulet rules contract + domain
getDsoPartyIdDSO party identifier
getMemberTrafficStatusSequencer traffic consumed vs limits
getMiningRoundDetailsOne mining round by number
getOpenAndIssuingMiningRoundsOpen and issuing rounds snapshot
lookupFeaturedAppRightFeatured-app entitlement for a party
lookupTransferCommandCounterByPartyTransfer command nonce counter
lookupTransferCommandStatusStatus for sender + nonce
lookupTransferPreapprovalByPartyTransfer preapproval contract for a party

Scan proxy — token-standard registry (allocations, transfers, metadata)

MethodSummary
getAllocationFactoryFactory + choice context for allocations
getAllocationCancelContextCancel allocation choice context
getAllocationTransferContextExecute transfer on allocation
getAllocationWithdrawContextWithdraw allocation
getInstrumentInstrument metadata by ID
getRegistryInfoRegistry admin + supported APIs
listInstrumentsPaginated instrument list
getTransferFactoryTransfer factory + choice context
getTransferInstructionAcceptContextAccept transfer instruction
getTransferInstructionRejectContextReject transfer instruction
getTransferInstructionWithdrawContextWithdraw transfer instruction

Wallet — balance, status, traffic, token-standard transfers, transfer offers

MethodSummary
createBuyTrafficRequestPurchase traffic from a validator
getBuyTrafficRequestStatusPoll buy-traffic request
getAmuletsSpendable and locked Amulet holdings
getWalletBalanceAggregate wallet balance
getUserStatusOnboarding / wallet installation status
createTokenStandardTransferToken-standard transfer (tracked)
listTokenStandardTransfersList token-standard transfers
createTransferOfferAmulet transfer offer to another party
acceptTransferOfferAccept incoming offer
rejectTransferOfferReject incoming offer
withdrawTransferOfferWithdraw own pending offer
listTransferOffersOffers involving current party
getTransferOfferStatusPoll offer by tracking ID

SDK source

index.ts (Validator API) wires each method to an operation class under operations/.