Skip to main content
peaq provides on-chain storage. Data is saved as a key: value pair.

addItem(itemType, item, seed)

Adds an entry pair to the blockchain.

Add Item Code Examples

getItem(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

Removing a storage item over EVM is not available in this SDK. Use a Substrate instance to remove an item.