An unordered map that stores data in NEAR storage.

Type Parameters

  • DataType

Hierarchy

Constructors

Properties

_keys: Vector<string>
prefix: string

The byte prefix to use when storing elements inside this collection.

values: LookupMap<ValueAndIndex>

Accessors

Methods

  • Store a new value at the provided key.

    Parameters

    • key: string

      The key at which to store in the collection.

    • value: DataType

      The value to store in the collection.

    • Optional options: GetOptions<DataType>

      Options for retrieving and storing the data.

    Returns DataType

Generated using TypeDoc