StaticcreateCreate a new Storage Program
Address creating the storage program (will be the deployer)
Name of the storage program
Initial key-value data to store
Access control mode (default: 'private')
Optionalsalt: stringOptional random salt for address derivation
OptionalallowedAddresses: string[]List of allowed addresses (for 'restricted' mode)
StorageProgramPayload for transaction creation
StaticdeleteDelete an entire Storage Program (deployer only)
WARNING: This operation is irreversible and will delete all stored data.
The storage program address to delete
StorageProgramPayload for transaction creation
StaticderiveDerive a deterministic storage program address
Address of the program deployer
Name of the storage program
Optional random salt for uniqueness (default: empty string)
Storage address in format: stor-{first 40 chars of sha256}
StaticgetStaticreadRead data from a Storage Program (query operation, not a transaction)
Note: This creates a payload for validation purposes. Actual reads should use RPC endpoints like GET /storage-program/:address
The storage program address to read from
StorageProgramPayload for validation
StaticupdateUpdate access control settings for a Storage Program (deployer only)
The storage program address
New access control mode
OptionalallowedAddresses: string[]Updated list of allowed addresses (for 'restricted' mode)
StorageProgramPayload for transaction creation
StaticvalidateStaticvalidateStaticwriteWrite or update key-value data in a Storage Program
The storage program address (stor-{hash})
Key-value data to write/update
StorageProgramPayload for transaction creation
Storage Program class for creating and managing key-value storage on Demos Network
Features:
Example