Show / Hide
Table of Contents
Last modified: 2024-09-14
Storage.Put Method
Inserts a given value to the given key in the persistent storage.
Namespace: Neo.SmartContract.Framework.Services
Assembly: Neo.SmartContract.Framework
Syntax
Parameters:
-
context: Storage context as a StorageContext .
-
key: Key as a byte array or string. Max length 64 bytes.
-
value: Value as a byte array, Biginteger, or string.
-
flag: StorageFlags type, representing a variable or constant in storage.
Return value: void.
Example
Back