> ## Documentation Index
> Fetch the complete documentation index at: https://trust-link-tsn.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Send from one TIN to another

> Send an owner-approved payment from an existing TIN balance and reconcile its Receiver status.

Use `sendTinDebitV1` to pay another TIN in the same asset from an existing confidential balance. The sender approves the payment and lets Node verify the sender's balance opening. A single settlement applies the outgoing debit and incoming credit together, and the recipient can remain offline.

## Before you start

* Connect the wallet that owns the sender TIN and can approve messages. Supply the same finalized Solana RPC and authenticated owner context used by the [TIN balance guide](https://trust-link-tsn.mintlify.site/sdk/owner-balance.md).
* Resolve a different, registered recipient TIN through a [trusted identity service](https://trust-link-tsn.mintlify.site/developers/private-tin-issuance.md). Show the returned name, its source and any verified credentials before approval.
* Select a governed mint with enough recovered sender balance. Pass the amount as a decimal string in token units, such as `"1.25"`. The SDK converts it with the decimals from Node preparation.
* Use a Receiver on the same deployment with the Node relay configured. The deployed programs, enabled debit verifier, proving artifacts and active reserve must support the transfer. [Service reachability](https://trust-link-tsn.mintlify.site/developers/network-status.md) · [Current availability](https://trust-link-tsn.mintlify.site/about/current-technology.md)

Check the verifier, reserve, and services for the deployment selected by your app. One debit finalized on the reference test deployment. [Recorded debit](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/docs/references/FUNDING-ISOLATION-20261125.md#pre-attachment-freshness-november-26-2026)

## Request the transfer

Keep one `TinDebitAttempt` for the reviewed payment before calling the SDK. Preserve its payment ID for Receiver status checks and keep the retry state in memory within the connected owner's session. This state can contain the sender's signed balance disclosure. [TypeScript example](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/tsn-protocol/tsn-docs/sdk/examples/tin-debit.ts)

```ts theme={null}
import { submitTinDebit, type SubmitTinDebitInput, type TinDebitAttempt } from "./tin-debit.js";

export function newTinDebitAttempt(): TinDebitAttempt {
  return { paymentId: crypto.randomUUID(), retryState: {} };
}

export async function approveTinDebit(input: SubmitTinDebitInput) {
  // input.attempt belongs to the reviewed payment. Keep it if this call throws.
  return submitTinDebit(input);
}
```

The example uses `TsnHttpClient` at the Receiver URL plus `/node` for the preparation and submission endpoints. Provide `connection`, `tin`, `ownerWallet` and the authenticated identity transport or verified registry context. Pass the reviewed recipient, token mint, amount and original attempt. Call `approveTinDebit` from the sender's payment action.

The SDK first obtains a signed preparation request for the reviewed recipient and mint. It then requests approval of the payment commitment and recovers the sender opening at the selected shared root. A separate wallet prompt authorizes disclosure of that opening to Node. A cold session can also prompt for owner lookup and local seed access. Receiver returns `{ workId, status, stateVersion }` for the accepted attempt. [TIN-Debit service contract](https://trust-link-tsn.mintlify.site/api-reference/services.md#tin-debit)

## Check the original transfer

Call `readTinDebitStatus({ receiverUrl, paymentId })` from the typed example. It reads `GET /api/work-status/<id>` and checks that the response belongs to the original debit. Show its pending status until Receiver reports a terminal result. After `CONFIRMED`, use `result.signature` to check the transaction's finality on the selected Solana RPC and refresh the owner's recovered balance. Receiver status, chain finality and balance recovery are separate checks.

If the submission response is lost, read the original payment ID before retrying. With the same wallet, reviewed inputs and in-memory attempt, the SDK can resubmit the exact saved request. Keep the original ID when its outcome remains uncertain. After a `FAILED` or `REJECTED` result, prepare a replacement only when `safeToReplace` is `true` for that work. A missing response or a terminal status alone does not establish that a transaction did not execute. [Replacement rules](https://trust-link-tsn.mintlify.site/api-reference/services.md#tin-debit)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.