Bag of Cells (boc)
You can deserialize Cell
to boc or serialize to one. To deserialize Cell
it's recommended to use Cell.one_from_boc(boc_data)
method. If Cell
contain more than one root CellError
will be raise, so to these cases use Cell.from_boc(boc_data)
method. You can provide boc_data
as bytes, hex string or base64-encoded string. Cells serialization to boc is about 10 times faster then tonsdk
's one (because of hashes pre-computation and cells immutability). To serialize Cell
to boc use to_boc
method.
Last updated