Docs

Code samples

Complete Torq Developer Preview examples for web, backend, mobile, and service integrations.

Choose a stack to open its complete, tested source. Each page mirrors the example validated against the current API, SDK, authentication, and wallet boundaries. Packages and credentials remain Developer Preview and are supplied with an approved application.

Available samples

StackOpen sampleUse it for
TypeScriptView TypeScriptCanonical resources and typed workflow lifecycle
ReactView ReactEIP-1193 wallet simulation and signing boundary
PythonView PythonNeobank or fintech backend reads and preparation
JavaView JavaJVM signer-boundary integration
KotlinView KotlinKotlin signer-boundary integration
SwiftView SwiftMobile package and signer-boundary integration

Use a sample safely

  1. Match the sample to the SDK version supplied with the approved application.
  2. Use a test application and Sepolia wallet.
  3. Keep secret keys on the server and publishable keys bound to exact browser origins.
  4. Keep transaction signing in the customer's wallet, HSM, or MPC boundary.
  5. Register every submitted transaction and wait for canonical final_success.
  6. Reconcile from the API after every event or receipt.

Use the SDK reference, API reference, and quickstarts as the canonical contract when adapting a sample. Public package installation is not yet available.

On this page