Skip to main content

Module storage

Module storage 

Source
Expand description

Storage utilities for Neo N3 smart contracts.

This module provides convenient functions for storing and retrieving structured data using JSON serialization.

Functionsยง

delete
Deletes a key from storage.
find_prefix
Finds all storage entries with the given prefix.
load
Loads a typed value from storage.
read_json
Reads a JSON-serialized value from a NeoByteString.
store
Stores a typed value to storage.
struct_entry
Creates a NeoStruct entry with key and value fields.
value_to_json
Converts a NeoValue containing a ByteString to a JSON value.
write_json
Writes a value as JSON to a NeoByteString.