Ton API
Cookbook

Cookbook

A collection of practical examples and solutions for common tasks when working with TON API. Each recipe provides ready-to-use code snippets, implementation details, and best practices for building TON applications.

Available Recipes

Basic Operations

  • TON Transfer - Send TON using mnemonic for signing, including wallet key derivation and transaction broadcasting
  • Jetton Transfer - Send Jettons using mnemonic, with wallet key derivation and transaction construction

Advanced Scenarios

  • Transaction Tracking - Track external messages using normalized hashes with examples in TypeScript and Go
  • Emulation - Test transactions before sending them to the network using the Emulation API
  • Gasless Transfer - Implement gasless transactions with examples in TypeScript, Go, and Python

Each recipe includes:

  • Step-by-step implementation guide
  • Code examples with detailed comments
  • Common pitfalls and their solutions