0.1.5 • Published 2 years ago

node-tonlib v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

node-tonlib

  • NodeJS wrapper for tonlibjson written as c++ addon.
  • Binaries can be located here - pytonlib

Installation

npm install node-tonlib

Usage

import tonlib from "node-tonlib";
import fetch from "node-fetch";

const configuration: tonlib.Configuration = await (
  await fetch("https://ton.org/global-config.json")
).text();

const client = new tonlib.Client({
  configuration: configuration,
  keystorePath: `${__dirname}/keystore`,
  network: "mainnet",
});

await this.client
  .send({
    "@type": "raw.getAccountState",
    account_address: {
      account_address: "EQCd3ASamrfErTV4K6iG5r0o3O_hl7K_9SghU0oELKF-sxDn",
    },
  })
  .then((res) => {
    console.log(res);
  });
0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago