Skip to main content
Install @trustlink/tsn-sdk in the app where you collect wallet payments or read a TIN balance. Use the private workspace package from your source checkout or a built copy supplied to your team.

Build from the workspace

Install the workspace dependencies, then build from the TrustLink workspace root.
The compiled package is in tsn-protocol/sdks/tsn-sdk/dist. The build also compiles its local TCAP SDK dependency.

Add the SDK to your app

Use the workspace dependency if your app is part of the checkout. For a separate app, run this command from the app directory and replace /absolute/path/to/trust-link with your checkout path.
Keep the TCAP SDK at its location in the checkout so npm can resolve the dependency. In browser code, import the specific subpath you need, such as @trustlink/tsn-sdk/client or @trustlink/tsn-sdk/tin-owner-balance. Some root exports require a server runtime. Configure your app.

Check the setup

From the app directory, check that Node.js can load the SDK’s ESM client.
The command prints TsnHttpClient. Next, check your app’s TSN endpoints. Check TSN network status