Skip to main content
This reference is generated from the checked-out TypeScript exports. Types and signatures describe the package contract; source presence does not establish deployment or service availability. Error expressions below are direct throws, not an exhaustive list of failures from dependencies. Source module. See the reference index for package import boundaries and verification scope.

buildCrossChainPaymentIntentMessage

Cross-chain payment intent. This is intentionally separate from the legacy Solana-only Payment Intent format so existing Solana flows are not changed. Every destination-sensitive field is inside the user signature. Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/canonical-message. Implementation, line 267.
Direct failure expressions:

buildPaymentIntentMessage

Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/canonical-message. Implementation, line 211.
Direct failure expressions:

buildTinCreationMessage

Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/canonical-message. Implementation, line 322.

buildTinWalletBindingMessage

Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/canonical-message. Implementation, line 338.

CanonicalMessageError

Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/canonical-message. Implementation, line 4.

isCanonicalTsnMessage

Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/canonical-message. Implementation, line 167.

parseCrossChainPaymentIntentMessage

Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/canonical-message. Implementation, line 301.
Direct failure expressions:

parsePaymentIntentMessage

Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/canonical-message. Implementation, line 241.
Direct failure expressions:

parseTinCreationMessage

Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/canonical-message. Implementation, line 364.

parseTinWalletBindingMessage

Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/canonical-message. Implementation, line 354.

parseTokenAmountToBaseUnits

Convert a human token amount to integer base units without floating-point rounding. Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/canonical-message. Implementation, line 17.
Direct failure expressions:

TSN_CANONICAL_DOMAIN_DISPLAY

Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/canonical-message. Implementation, line 14.

TSN_CANONICAL_DOMAIN_HASH

Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/canonical-message. Implementation, line 11.

VerifiedRecipientCredential

Import from @trustlink/tsn-sdk or @trustlink/tsn-sdk/canonical-message. Implementation, line 171.