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

# Test an integration and interpret evidence

> Offline SDK checks, service contracts and live settlement evidence.

Start with deterministic preparation and request validation, then test actual services and chain outcomes in the selected environment. A type check verifies imports and arguments; it does not execute wallet approval, network calls or settlement. The documentation examples keep those boundaries explicit so a developer can test the code they actually own.

## Offline examples and source build

From a dependency-installed checkout:

```bash theme={null}
npm run tsn:sdk:build
node docs/references/tooling/verify-sdk-examples.mjs
node --test tsn-protocol/sdks/tsn-sdk/tests/canonical-payment-route.test.mjs
```

The example verifier type-checks five complete example files and runs nine offline scenarios using real SDK preparation/client functions with mocked fetch. They cover amount conversion/precision, zero fees, owner-hash binding, malformed values, request integrity, HTTP acceptance/errors, readiness interpretation and funding-note authorization binding. Wallet-credit RPC/signing callbacks and the owner-balance example remain type-checked only; no live signatures are produced.

During the November 2 documentation run, the root build launcher could not find root TypeScript. The installed SDK compiler successfully built the SDK and its TCAP dependency directly; [the internal operations record](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/docs/laboratory/operations-and-verification.md) retains the exact command and limitation. The three canonical route tests also passed. These are bounded local observations, not a supported runtime compatibility matrix.

## Service-contract tests

Receiver tests check projection/redaction, Node attestation, encrypted envelope and local storage behavior. Node suites check authorization, recipient binding, root-selected witnesses, local proving and transport limits. Cranker tests check its signed execution projection. Run the suites appropriate to changed contracts and inspect their prerequisites before invoking any script that can initialize accounts, fund assets or submit transactions.

The [internal testing record](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/docs/laboratory/testing-and-evidence.md) links the inspected suites and distinguishes earlier local proving/SBF-build results from tests run for documentation. Test-file existence is not a passing test result. Development setup artifacts are not evidence of a production trusted-setup ceremony.

## First live native credit

Verify selected binaries, the existing matching credit/epoch verifier keys, active asset/reserve/roots, current recipient scan schema and root-matching snapshots. Existing global funding accounts need the explicit version-2 history migration. Test one genuine confirmed deposit, retained-root acceptance after later deposits, retired/forged/empty-root rejection, current-nullifier replay rejection and lease-bound Mother signing. Protected amount openings and owner recovery are separate checks; a local proof is not deployed execution evidence.

Retain the credit signature and successful result, expected shared-root sequence/digest and owner-validated commitment opening/history. Individual credit must leave reserve assets/liabilities unchanged. Separately verify GPRU's complete 2–64-credit epoch proof and TCAP's one aggregate pending-to-settled reclassification, preserved custody/total liabilities, accounted flag, reserve-epoch advance and rejection of repeated accounting. A singleton stays open. For 2–63 credits, Node waits for 120 slots from the first credit; at 64 it schedules immediately and further credits wait for accounting. Time alone must not expire or roll the epoch. Verify first-credit shared account creation and same-epoch reuse separately; see [the TCAP lifecycle](https://trust-link-tsn.mintlify.site/layers/tcap.md#native-credit-epoch-lifecycle).

The [November 16 credit record](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/docs/laboratory/experiments/EXP-20261116-private-credit-epoch.md) establishes two confirmed credits and accounting of their shared epoch. It is bounded evidence for that run, not a claim that every scenario above or public-observer action unlinkability was verified. Record cluster, slot and commitment level; funding, credit, accounting and owner recovery establish distinct facts.

Keep captured evidence allowlisted: identifiers, sanitized status, signatures, public state and result summaries. Do not publish private witnesses, raw TIN payloads, scan secrets, session tokens or environment credentials. Route-specific exit/cross-chain verification also needs destination execution and must not inherit native-credit success by assumption.

## Documentation validation

Regenerate SDK/service catalogs after changing public exports or handler declarations, type-check examples, and run the local navigation/link audit. MDX compilation and Mermaid parsing are separate checks from browser theme rendering. The [documentation status ledger](https://github.com/bigdreamsweb3/trustlink-pay/blob/main/docs/DOCUMENTATION_STATUS.md) records exact checks and unresolved coverage.


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