solana_client::nonce_utils

Function data_from_state

source
pub fn data_from_state(state: &State) -> Result<&Data, Error>
Expand description

Get the nonce data from its State value.

ยงErrors

Returns Error::InvalidStateForOperation if state is State::Uninitialized.