- Preparing search index...
- The search index is not available
ton-core
Constructors
constructor
- new Cell(opts?: {
bits?: BitString;
exotic?: boolean;
refs?: Cell[];
}): Cell
-
Parameters
-
Optional opts: {
bits?: BitString;
exotic?: boolean;
refs?: Cell[];
}
-
-
Optional exotic?: boolean
-
Optional refs?: Cell[]
Properties
Private _depths
_depths: number[] = []
Private _hashes
_hashes: Buffer[] = []
Readonly mask
mask: LevelMask
Accessors
isExotic
- get isExotic(): boolean
-
Returns boolean
Methods
[SymbolInspect]
- [SymbolInspect](): string
-
Returns string
beginParse
- beginParse(allowExotic?: boolean): Slice
-
Parameters
-
allowExotic: boolean = false
depth
- depth(level?: number): number
-
Returns number
equals
- equals(other: Cell): boolean
-
Returns boolean
hash
- hash(level?: number): Buffer
-
Returns Buffer
level
- level(): number
-
Returns number
toBoc
- toBoc(opts?: {
crc32?: null | boolean;
idx?: null | boolean;
}): Buffer
-
Parameters
-
Optional opts: {
crc32?: null | boolean;
idx?: null | boolean;
}
-
Optional crc32?: null | boolean
-
Optional idx?: null | boolean
Returns Buffer
toString
- toString(indent?: string): string
-
Returns string
Static fromBase64
- fromBase64(src: string): Cell
-
Static fromBoc
- fromBoc(src: Buffer): Cell[]
-
Returns Cell[]
Cell as described in TVM spec