Function oasis_runtime_sdk::modules::consensus_accounts::state::get_delegation
source ยท pub fn get_delegation(
from: Address,
to: Address,
) -> Result<DelegationInfo, Error>
Expand description
Retrieve delegation metadata for a given (from, to) pair.
In case no delegation exists for the given (from, to) address pair, an all-zero delegation metadata are returned.