A lookup map that stores data in NEAR storage.

Type Parameters

  • DataType

Hierarchy

Constructors

Properties

keyPrefix: string

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

Methods

  • Extends the current collection with the passed in array of key-value pairs.

    Parameters

    • keyValuePairs: [string, DataType][]

      The key-value pairs to extend the collection with.

    • Optional options: GetOptions<DataType>

      Options for storing the data.

    Returns void

  • Store a new value at the provided key.

    Parameters

    • key: string

      The key at which to store in the collection.

    • newValue: DataType

      The value to store in the collection.

    • Optional options: GetOptions<DataType>

      Options for retrieving and storing the data.

    Returns DataType

Generated using TypeDoc