Skip to main content
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.
  • Resolve a different, registered recipient TIN through a trusted identity service. 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 · Current availability
Check the verifier, reserve, and services for the deployment selected by your app. One debit finalized on the reference test deployment. Recorded debit

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
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

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