@tonstack/tontools
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

💎 tontools

TypeScript TON

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

⚠️ 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

Readme

Keywords

Package Sidebar

Install

npm i @tonstack/tontools

Weekly Downloads

2

Version

0.0.3

License

MIT

Unpacked Size

150 kB

Total Files

52

Last publish

Collaborators

  • cryshado
  • tjifyodor