Skip to main content
Another basic operation peaq provides is on-chain storage, allowing data to be saved using a key: value structure.

addItem(itemType, item, seed)

Adds an entry pair to the blockchain.

Add Item Code Examples

readItem(itemType, address, wssBaseUrl)

Returns the key: value pair of what is stored on-chain.

Get Item Code Examples

updateItem(itemType, item, seed)

Updates the value in storage for the key passed.

Update Item Code Examples

removeItem(itemType, seed)

Removes the item type and item from peaq storage.

Remove Item Code Examples

EVM delete storage precompile currently in development. When completed will add to the JavaScript SDK.