pub struct WalletUnwatchParams {
pub public_keys: Vec<String>,
}Expand description
control.wallet.unwatch params: which PUBLIC keys the node should stop following.
Takes the same wire form as WalletWatchParams under the same field name, so a client
reverses an enrolment by re-sending exactly what it sent. Deregistering a key that was never
enrolled is a success, not an error — the mirror of enrolment’s idempotence, and what lets a
client assert an end state rather than compute a diff.
Fields§
§public_keys: Vec<String>The public keys to deregister: lowercase 96-hex, unprefixed. A 0x prefix is TOLERATED on
input and normalized away by Self::validated; it is never emitted.
Implementations§
Source§impl WalletUnwatchParams
impl WalletUnwatchParams
Sourcepub fn validated(self) -> Result<Self, ControlError>
pub fn validated(self) -> Result<Self, ControlError>
Normalize and check every key, or reject the request as -32602 INVALID_PARAMS.
The whole request is refused when ANY key is malformed — never the well-formed subset. A partial enrolment would leave the node following fewer addresses than the client believes it asked for, and the client’s next balance read would report a shortfall as though the money were not there. One bad key is a malformed REQUEST.
Accepts exactly two spellings per key — 96 lowercase hex characters, or the same 96
preceded by 0x. Uppercase, whitespace and every other length are refused, because
the contract’s hex wire form is lowercase and unprefixed everywhere else.
Trait Implementations§
Source§impl Clone for WalletUnwatchParams
impl Clone for WalletUnwatchParams
Source§fn clone(&self) -> WalletUnwatchParams
fn clone(&self) -> WalletUnwatchParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more