Socket
Book a DemoInstallSign in
Socket

@tonstack/tontools

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tonstack/tontools

TON low-level API tools

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

💎 tontools

TypeScript TON

Tontools-js is a javascript package inspired by tonweb to work with TON blockchain.
Visit documentation to see API reference.

:warning: Work in progress, API can (and most likely will) be changed! This is not production ready version yet.

How to install

npm i @tonstack/tontools

How to use

import { BOC, Builder } from '@tonstack/tontools'

const text = 'Hello, World!'
const cell = new Builder()
    .storeString(text)
    .cell()

const boc = BOC.toBytesStandard(cell)
const result = BOC.fromStandard(boc)
    .parse()
    .loadString()

console.log(text === result) // true

Main authors

tjifyodor
cryshado

License

MIT License

Keywords

ton

FAQs

Package last updated on 22 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts