Missing RPC method offchain_localStorageClear
#7265
Labels
I5-enhancement
An additional feature request.
I10-unconfirmed
Issue might be valid, but it's not yet known.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Motivation
Substrate off-chain RPC API offers
offchain_localStorageSet
andoffchain_localStorageGet
methods for writing and reading a certain off-chain storage key. But there are no means to remove a key through the RPC API once a key is set. The existingoffchain_localStorageSet
acceptsBytes
and does not acceptNone
value which makes possible to set the value to zero, but not remove the key.Request
Add
offchain_localStorageClear
RPC method.Solution
Extend
rpc-api::offchain::OffchainApiServer
trait withclear_local_storage
method and implement it forrpc::offchain::Offchain
.Are you willing to help with this request?
Yes!
The text was updated successfully, but these errors were encountered: