TONAPI

What is TONAPI

Learn about TONAPI - the modern API for TON blockchain

What is TONAPI

TONAPI is a high-performance REST API that provides simple and intuitive access to TON blockchain data. It abstracts away the complexity of blockchain interactions, allowing developers to build applications faster and more efficiently.

Why TONAPI?

Simplified Blockchain Access

TON blockchain is powerful but complex. TONAPI eliminates this complexity by providing:

  • Clean REST API - Standard HTTP endpoints that work with any programming language
  • Unified wallet support - No need to implement multiple wallet standards
  • Pre-processed data - Get human-readable information instead of raw blockchain data
  • Real-time updates - WebSocket streaming and webhooks for live data

Developer-Friendly

TONAPI is designed with developers in mind:

  • Comprehensive documentation - Clear guides and examples for every endpoint
  • Multiple SDKs - Official libraries for JavaScript, Python, Go, and more
  • GraphQL support - Query exactly the data you need
  • OpenAPI specification - Generate clients for any language

Production-Ready

Built for scale and reliability:

  • High performance - Low latency and high throughput
  • 99.9% uptime - Reliable infrastructure with redundancy
  • Rate limiting - Fair usage policies with generous free tier
  • Monitoring - Track your API usage and performance

Key Features

Account Management

Access comprehensive account information:

  • Balance and transaction history
  • NFT collections and jettons
  • Staking and delegation details
  • Smart contract interactions

Transaction Tracking

Monitor blockchain activity:

  • Real-time transaction updates
  • Transaction traces and messages
  • Fee calculations
  • Event decoding

NFT & Jetton Support

Work with TON assets effortlessly:

  • NFT metadata and ownership
  • Jetton balances and transfers
  • Collection information
  • Marketplace data

Smart Contract Interaction

Interact with TON smart contracts:

  • Method execution
  • State queries
  • Event monitoring
  • Contract verification

Architecture

TONAPI consists of several components:

REST API

The primary interface for synchronous requests. Perfect for:

  • Fetching account data
  • Querying transactions
  • Reading smart contract state

Streaming API

WebSocket-based real-time updates for:

  • Transaction notifications
  • Account changes
  • Block updates

Webhooks API

Push notifications for blockchain events:

  • Incoming transactions
  • NFT transfers
  • Jetton operations

GraphQL API

Flexible querying with:

  • Custom data selection
  • Nested queries
  • Batched requests

Use Cases

TONAPI powers various applications:

Wallets

  • Balance tracking
  • Transaction history
  • Asset management
  • DApp connections

Explorers

  • Block and transaction browsing
  • Account analytics
  • Network statistics
  • Smart contract verification

DApps

  • User authentication
  • Token operations
  • NFT marketplaces
  • DeFi protocols

Analytics

  • Market data
  • On-chain metrics
  • User behavior
  • Token statistics

Getting Started

Ready to build with TONAPI? Here's how to begin:

  1. Quick Start - Make your first API call
  2. REST API Reference - Explore all endpoints
  3. SDK Guide - Use official libraries
  4. Cookbook - Learn from examples

Support

Need help or have questions?

What's Next?

How is this guide?