Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

TONlib Multiclient

The TONlib Multi Client is crafted with modern C++ to serve as a robust and flexible tool for seamless communication with multiple TON blockchain lite servers. It's engineered for efficiency, allowing for streamlined request handling across a diverse array of server endpoints.

Features

  • Multi-threaded Design: Enhances the ability to handle concurrent connections and requests efficiently.
  • Flexible Request Handling: Supports a variety of request types, ensuring robust interaction with blockchain lite servers.
  • Dynamic Request Creation: Allows for the creation of customizable requests, enabling tailored blockchain queries and operations.
  • Advanced Configuration Options: Offers detailed settings for requests, including server selection and archival data queries, providing users with control over their blockchain interactions.

Requirements

  • CMake: Version 3.15 or newer.
  • C++ Compiler: Must support the C++20 standard or more recent.

Usage

Examples could be found in the examples directory.

Building

mkdir build
cd build
cmake ..
cmake --build .

Requests

Request

This structure is suitable for general request operations where the response type is known and directly utilized.

RequestFunction

A specialized version of Request for cases where TonlibClient::make_request cannot process the request ( raw_getAccountState etc).

RequestCallback

Designed for advanced use cases where the user must initialize and manage the response through your own global callback. Requires explicit setup for callback handling.

RequestJson

Enables sending requests in raw JSON format, requiring minimal configuration besides the JSON string itself and the standard request parameters.