Skip to content
HardlyDifficult edited this page Jun 17, 2026 · 2 revisions

Utility functions

Utilities are named exports alongside Canton / clients — they encode common flows (party creation, Amulet transfers, external signing, mining rounds, fee parsing) so you do not hand-build every command.

Quick samples

Party

createParty — uses LedgerJsonApiClient + ValidatorApiClient.

Amulet

createTransferOffer, acceptTransferOffer, and related helpers for locked coins and pre-approval.

Fees

parseFeesFromEventTree, formatFeeAmount.

Health

waitForReady — polls Canton.checkHealth() until selected services are healthy.

Complete list

See Reference and search for Traffic, External signing, or Transaction batches for adjacent helpers.

Source tree: src/utils.

Clone this wiki locally