pack
pack(
value,_opts):string
Defined in: packages/store-kit/src/objects/state.ts:92
Encode a value for on-chain box storage as a UTF-8 string.
Retained for backwards compatibility with callers that always want a
string (e.g. legacy MBR estimators). When a schema covers the path,
this returns the canonical JSON of the value — NOT the ARC4 bytes.
Use packWire when you need a payload that can be routed to the
schema-aware set_bytes ABI.
Parameters
value
any
_opts
PackOptions = {}
Returns
string