Skip to main content
@trustlink/tsn-sdk is the application-facing TypeScript façade. It exports the client, authorization, TIN, cross-chain, wallet-transfer, receipt, recovery, and Solana helpers from src/index.ts.

Public modules and functions

The exports below are grouped by source module. The linked source is authoritative for the complete parameter type and return shape.

Network status

The function probes local candidates before live candidates, reports route count and Cranker observations, and does not require a Cranker heartbeat for native intent creation. Cross-chain readiness additionally requires at least one registered ready destination.

Payment authorization

TODO: confirm the exact submitPaymentAuthorizationToMempool object type from the current exported declaration before adding field-level response tables to this page.

Private TIN resolution

createTinV1IdentityEnvelope, encryptTinSensitiveField, decryptTinSensitiveField, resolveTIN, and resolveTinRoute are source-backed helpers for private identity material. The lookup secret is an input to the resolution flow; it is not a public on-chain display name. TODO: confirm the current resolver transport and returned identity fields from tins.ts:1363-1630; this page does not expose a guessed HTTP endpoint for a library-only function. Source: index.ts, network-status.ts:79-157, payment-authorization.ts:1-258, tins.ts:1168-1630, cross-chain.ts:1-450