@tonstack/tontools
v0.0.3
Published
TON low-level API tools
Downloads
4
Readme
💎 tontools
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
License
MIT License