GithubHelp home page GithubHelp logo

tonlib-multiclient's Introduction

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.
  • Python: Version 3.9 or above is required for utilizing Python bindings.

Usage

Examples could be found in the examples directory.

Building

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

Build with Python bindings, pass -DPY_TONLIB_MULTICLIENT:BOOL=TRUE to CMake:

cmake -DPY_TONLIB_MULTICLIENT:BOOL=TRUE ..
cmake --build .

To use built python binding you need to copy tonlib_multiclient dynamic lib (.so) from build/py directory to your python project.

cp build/py/tonlib_multiclient.so /path/to/your/python/project

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.

tonlib-multiclient's People

Contributors

kdimentionaltree avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.