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
| Stack | Open sample | Use it for |
|---|---|---|
| TypeScript | View TypeScript | Canonical resources and typed workflow lifecycle |
| React | View React | EIP-1193 wallet simulation and signing boundary |
| Python | View Python | Neobank or fintech backend reads and preparation |
| Java | View Java | JVM signer-boundary integration |
| Kotlin | View Kotlin | Kotlin signer-boundary integration |
| Swift | View Swift | Mobile package and signer-boundary integration |
Use a sample safely
- Match the sample to the SDK version supplied with the approved application.
- Use a test application and Sepolia wallet.
- Keep secret keys on the server and publishable keys bound to exact browser origins.
- Keep transaction signing in the customer's wallet, HSM, or MPC boundary.
- Register every submitted transaction and wait for canonical
final_success. - 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.