Skip to main content
Resolve a ten-digit Transfer Identity Number (TIN) on your application backend. Use the returned display name to help the sender review the recipient and use the owner hash when building the payment request. Create a TIN

Prerequisites

  • Access to the TSN TypeScript workspace SDK.
  • A Solana RPC connection and TIP program ID for the deployment where the TIN was registered.
  • The issuer’s high-entropy lookup secret, available only to your trusted backend. Keep it out of browser bundles, wallet prompts, and public configuration.

1. Resolve the TIN on your backend

Use the typed resolver example in a trusted backend handler. Pass the TIN as a string so any leading zero is preserved. The example calls resolveTinV1Identity from @trustlink/tsn-sdk/tins and returns only the fields needed for recipient review and payment preparation.
The SDK derives the registry account address from the TIN and lookup secret, validates the account and its route fields, and decrypts the identity. A missing account returns null. An invalid account or envelope throws an error. Keep the payment action unavailable until lookup succeeds, and use your application’s access controls and rate limits for callers.

2. Show the recipient before requesting approval

Display the resolved TIN and displayName together. The SDK returns displayNameSource as owner-provided or not provided, and verifiedCredentials is currently empty. Treat the display name as a review aid. When the sender confirms the recipient, use ownerPubkeyHash as the recipientHash in the wallet payment guide.

Issue a TIN in TSN XP

Follow the creation guide for the wallet steps, SDK submission, and confirmation check. Create a TIN

Recover an existing TIN

Reconnect the registration wallet in TSN XP and approve the recovery message. XP fetches the separate owner-indexed TIP account and decrypts the TIN identity locally. The main registry stores the encrypted identity separately. For your own owner interface, use the wallet recovery helpers, then read the owner balance when the application needs finalized token history.