ChainUp Cloud
English
English
  • 👋Welcome to ChainUp Cloud
  • INTRODUCTION
    • 🔎Chainup Cloud API Quickstart
    • đŸ•šī¸Products
      • â›“ī¸Blockchain API
      • âš™ī¸Fullnode Service
      • âš’ī¸Dedicated Node
      • đŸ‘ĨWhite Label Validator
      • ⛲Staking
      • 🍧HashKing Aggregator
      • 💌ChainNova
    • 👷For Developers
      • â›“ī¸Use Blockchain API
      • âš’ī¸Deploy Dedicated Node
      • â˜ī¸Use distributed storage with IPFS API
    • 👾For Investors
      • ⛲How to stake Ethereum?
      • đŸ‘ĨRunning your own validators
  • ChainUpCloud Open API
    • Staking Rewards API
      • Validator Daily Rewards
      • Validator Total Rewards
      • Cloud Validator Settles EL Rewards
    • ETH Staking API
      • Broadcast Staking Tx
      • Create Validators
      • Get Validators
      • Exit Validators by Pubkeys
    • Error Codes
  • đŸˇī¸NFT API
    • Transfer API
    • NFT Metadata Access
    • Ownership & Token Gating
  • Blockchain API
    • 📚Overview
      • Create Blockchain API for your project
      • Dashboard stats
    • 💎Ethereum
      • JSON-RPC methods
      • WebSocket stream
    • Solana
      • JSON-RPC methods
      • Solana Nodes FAQ
      • Websocket Stream
    • TON
      • HTTP API
      • Indexer API
    • 🚔BNB
      • JSON-RPC methods
      • WebSocket stream
    • â›ŊPolygon (Matic)
      • JSON-RPC methods
      • WebSocket stream
    • 🌞Tron
      • JSON-RPC methods
    • đŸĒ™Bitcoin
      • JSON-RPC methods
    • 📂Filecoin
      • JSON-RPC methods
      • Public APIs
    • 🍡Polkadot
      • JSON-RPC methods
      • WebSocket stream
    • âšĒLitecoin
      • JSON-RPC methods
    • 🚃Near
      • JSON-RPC methods
    • 💎Ethereum Beacon
      • JSON-RPC methods
    • đŸĒ¨Ethereum Classic - ETC
      • JSON-RPC methods
    • đŸĨ€Bitcoin Cash - BCH
      • JSON-RPC methods
    • đŸĻƒKusama
      • JSON-RPC methods
      • WebSocket stream
    • 🍆EOS
      • JSON-RPC methods
    • đŸ‘ģFantom
      • JSON-RPC methods
    • ã€°ī¸Aptos
      • HTTP Methods
    • đŸ”ī¸Avalanche
      • JSON-RPC methods
    • 🔑Cosmos
      • HTTP Methods
    • 📚Omni
      • JSON-RPC methods
    • â˜¸ī¸Arbitrum
      • JSON-RPC methods
    • đŸ’¯Dogecoin
      • JSON-RPC methods
    • 🎷Optimism
      • JSON-RPC methods
    • Dash
      • JSON-RPC methods
    • Zcash
      • JSON-RPC methods
    • XRP
      • JSON-RPC methods
    • Base
      • JSON-RPC methods
    • Scroll
      • JSON-RPC methods
    • Qtum
      • JSON-RPC methods
  • Staking
    • 📘Overview
    • 💎Staking on Ethereum
      • 📀Shanghai Upgrade
      • ⛲How to stake Ethereum?
      • 📙How to generate Deposit Data?
    • 📏Staking on Ethereum with SSV
    • đŸ–Œī¸Registering SSV Operator
    • đŸ–Œī¸How to delegate to SSV Cluster?
    • 🌌Staking on Cosmos
      • Staking on Cosmos
      • 在 Cosmos 䏊贍æŠŧ
    • 📱Staking on Mina
    • 🍆Staking on EOS
    • 📂Staking on FIL
    • đŸ•ļī¸Staking on ZILLIQA
  • Validator Node
    • 📗Overview
    • 💎Ethereum
      • Running Validator Node
      • How to create Validator Keys?
  • RESOURCES
    • 📕FAQ Introduction
      • â›“ī¸Blockchain API
      • âš’ī¸Dedicated Node
    • đŸ—ŗī¸Support
    • Api Reference
Powered by GitBook
On this page
  • Overview of TON APIs
  • TON offers two primary services for accessing blockchain data:
  • Accessing the APIs
  • Example Usage
  • Using the TON HTTP API
  • Using the TON Indexer API
  • Note on ADNL Protocol

Was this helpful?

  1. Blockchain API

TON

Welcome to the Chainup TON API documentation! This resource provides essential information for developers looking to integrate with the TON blockchain.

Overview of TON APIs

TON offers two primary services for accessing blockchain data:

  1. TON HTTP API: This API converts the ADNL binary protocol to HTTP, allowing you to communicate with TON nodes as if you were directly connected. It's designed for ease of use and compatibility with standard web technologies.

  2. TON Indexer API: This service indexes blockchain data into PostgreSQL, enabling efficient data retrieval through API calls. It is particularly useful for applications that require access to historical blockchain data.

Accessing the APIs

  • TON HTTP API Base URL: https://api.chainup.net/ton/mainnet/{token}/api/v2

  • TON Indexer API Base URL: https://api.chainup.net/ton/mainnet/{token}/api/v3

Example Usage

You can interact with the APIs using standard HTTP requests. Below are examples of how to fetch masterchain information:

Using the TON HTTP API

curl -X 'GET' \
  'https://api.chainup.net/ton/mainnet/{token}/api/v2/getMasterchainInfo' \
  -H 'accept: application/json'

Using the TON Indexer API

curl -X 'GET' \
  'https://api.chainup.net/ton/mainnet/{token}/api/v3/masterchainInfo' \
  -H 'accept: application/json'

Note on ADNL Protocol

TON nodes do not provide HTTP RPC APIs and communicate exclusively through the ADNL binary protocol. If you require access methods for ADNL, please reach out to our support team for assistance.

PreviousWebsocket StreamNextHTTP API

Last updated 8 months ago

Was this helpful?