@tonx/adapter
TypeScript icon, indicating that this package has built-in type declarations

2.0.7 • Public • Published

@tonx/adapter

The TONX.js Adapter allows for an easy transition from popular TON client libraries like @ton/ton, TonWeb, and TonClient4. With minimal code changes, you can migrate your project to the TONX API effortlessly.

Already using existing TON APIs like Ton Center? Migrate to TONX API effortlessly.

P.S. Our RESTful migration API is also coming soon—contact us if you'd prefer to migrate that way.

Features

Usage

Before using it, you will need to get a key from TONX API.

ton/core

import { ToncoreAdapter } from "@tonx/adapter";

const client = new ToncoreAdapter({
  network: "mainnet",
  apiKey: "YOUR_API_KEY",
});

tonweb

import { TonWebAdapter } from "@tonx/adapter";

const client = new TonWebAdapter({
  network: "mainnet",
  apiKey: "YOUR_API_KEY",
});

TonClient4

import { TonClient4Adapter } from "@tonx/adapter";

const client = new TonClient4Adapter({
  network: "mainnet",
  apiKey: "YOUR_API_KEY",
});

Documentation & Resources

Readme

Keywords

none

Package Sidebar

Install

npm i @tonx/adapter

Weekly Downloads

110

Version

2.0.7

License

none

Unpacked Size

169 kB

Total Files

31

Last publish

Collaborators

  • weiyi.chiu
  • qbtf
  • henry-kuo
  • allentonx