ton3-core / BOC
Bag Of Cells
• new BOC(cells
)
Creates an instance of BOC, containing up to 4 root Cell list
example
import { BOC, Builder } from 'ton3-core'
const cell = new Builder().cell()
const boc = new BOC([ cell ])
Name | Type | Description |
---|---|---|
cells |
Cell [] |
BOC root Cell list |
▸ [iterator](): IterableIterator
<Cell
>
IterableIterator
<Cell
>
▸ Static
from(data
, checkMerkleProofs?
): BOC
Returns deserialized BOC.
static
Name | Type | Default value | Description |
---|---|---|---|
data |
string | Uint8Array |
undefined |
Bytes, Hex, Base64 or FiftHex of serialized BOC. |
checkMerkleProofs |
boolean |
false |
- |
▸ toBytes(options?
): Uint8Array
Returns serialized BOC in bytes representation.
Name | Type |
---|---|
options? |
BOCOptions |
Uint8Array
▸ toString(encoding?
, options?
): string
Returns serialized BOC in Base64, Hex or FiftHex representation.
Name | Type | Default value |
---|---|---|
encoding |
BOCEncoding |
'hex' |
options? |
BOCOptions |
undefined |
string
• get
root(): Cell
[]
Returns BOC root Cell list
Cell
[]