npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@tonx/core

v1.2.0

Published

TONX.js SDK (`@tonx/core`) makes onboarding to the TON blockchain seamless with TON API tools, leveraging the power of [TONX API](https://tonxapi.com/) to help you launch your dApp quickly.

Downloads

33

Readme

TONX.js

TONX.js SDK (@tonx/core) makes onboarding to the TON blockchain seamless with TON API tools, leveraging the power of TONX API to help you launch your dApp quickly.

Whether you're new to the TON ecosystem or an experienced developer, TONX.js simplifies the process and gets you started effortlessly.

For detailed usage instructions and a quickstart guide, visit the https://docs.tonxapi.com/docs/welcome-to-ton-api. To explore the full range of TON API endpoints provided by tonxapi.com, refer to the TON APIs Reference Overview.

Features

  • JSON-RPC method powered by the TONX Supernode with 99.99% uptime, precise indexing, and ultra-low latency
  • Full integration with TONX API endpoints

In addition, the TONX.js Adapter (@tonx/adapter) allows for an easy transition from popular TON client libraries like @ton/ton, TonWeb, and TonClient4. With just a few code changes, you can seamlessly integrate with TONX API.

Install

npm install @tonx/core

To access the full features of TONX API, including advanced tools, register here for a free TON API key.

Examples

Initialize TONX client and use its features:

import { TONXJsonRpcProvider } from "@tonx/core";

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

// Get consensus block
const consensusBlock = await client.getConsensusBlock();
console.log(consensusBlock);

// Get tgBTC Jetton Wallet address by owner
const tgBTCWallet = await client.getTgBTCWalletAddressByOwner({
  owner_address: "YOUR_OWNER_ADDRESS"
});
console.log(tgBTCWallet)

// Get tgBTC transfers
const transfers = await client.getTgBTCTransfers({address: "YOUR_ADDRESS"});
// Create payload for use with TonConnect tgBTC transfers
const tgBTCTransferPayload = await client.getTgBTCTransferPayload({
  amount: 1000, // tgBTC Amount
  destination: "DESTINATION_ADDRESS",
  source: "YOUR_OWNER_ADDRESS",
});

// Using in TonConnect
await tonConnectUI.sendTransaction({
  validUntil: Math.floor(Date.now() / 1000) + 360,
  messages: [{ ...tgBTCTransferPayload }],
});

Documentation & Resources

License

MIT