TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ton-blockchain/acton/llms.txt
Use this file to discover all available pages before exploring further.
tvm-dicts module exposes the raw TVM dictionary instruction set as Tolk methods on the dict type. Unlike the high-level map<K, V> type from common, which handles key serialisation and value deserialisation automatically, tvm-dicts gives you direct control over key widths, raw slice values, and cell references. It is most useful when you need to interact with dictionary formats defined by external protocols, perform custom serialisation, or squeeze out the last gas savings in hot paths.
Prefer
map<K, V> for new code. Use tvm-dicts only when you need direct TVM instruction access or are interoperating with existing on-chain data formats that use raw dict operations.Import
Key Prefixes
All function names follow a consistent three-prefix naming scheme:| Prefix | Key type | Example |
|---|---|---|
i | Signed integer (int) | iDictGet |
u | Unsigned integer (int) | uDictGet |
s | Slice | sDictGet |
Creating an Empty Dictionary
Get Operations
Get Example
Set Operations
Set and Get Previous
Delete Operations
Traversal / Iteration
Find First and Last
Neighbour Traversal (Next / Prev)
Full Ascending Iteration Pattern
Prefix Dictionary Operations
Low-Level Conversion
The high-levelmap<K, V> can be bridged to dict for low-level access: