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

This SDK does not build an EVM removeItem transaction. To remove an item over EVM, send a transaction to the storage precompile at 0x0000000000000000000000000000000000000801 calling removeItem(bytes) with the UTF-8 bytes of the key, or use a Substrate instance.