1.0.1 • Published 2 years ago
ton3-core v1.0.1
💎 ton3-core
ton3-core is a TON blockchain low-level API implementation.\ Visit documentation to see API reference.
How to install
npm i ton3-core
Primitive example
import { BOC, Builder } from 'ton3-core'
const text = 'Hello, World!'
const cell = new Builder()
.storeString(text)
.cell()
// Serialize BOC to Uint8Array
const serialized = BOC.toBytes([ cell ])
// Deserialize BOC from Uint8Array and get first root cell
const [ deserialized ] = BOC.from(serialized)
const result = deserialized.slice().loadString()
console.log(text === result) // true
Features
- Bag of Cells (BOC) (de)serialization
- Cell
- Builder
- Slice
- Hashmap (de)serialization
- HashmapE (de)serialization
- Coins (TON, NANOTON, JETTON, etc.)
- Address
- Contracts
Donations
You can support library author by sending any amount of TON to address below
UQCcJpog-XAzY7tK6uqCd6QrEBlgocPXdXgIG3ev1Dxg5dl2
License
MIT License
1.0.1
2 years ago
1.0.0
2 years ago
0.0.20
2 years ago
0.0.21
2 years ago
0.0.18
3 years ago
0.0.19
3 years ago
0.0.17
3 years ago
0.0.12
3 years ago
0.0.13
3 years ago
0.0.14
3 years ago
0.0.15
3 years ago
0.0.16
3 years ago
0.0.10
3 years ago
0.0.11
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago