pub struct JormungandrRest {
inner: BackwardCompatibleRest,
}
Expand description
Specialized rest api
Fields§
§inner: BackwardCompatibleRest
Implementations§
source§impl JormungandrRest
impl JormungandrRest
pub fn new(uri: String) -> Self
pub fn new_with_custom_settings(uri: String, settings: RestSettings) -> Self
pub fn address(&self) -> String
pub fn disable_logger(&mut self)
pub fn enable_logger(&mut self)
pub fn inner(&self) -> &BackwardCompatibleRest
pub fn raw(&self) -> &RawRest
pub fn new_with_cert<P: AsRef<Path>>(uri: String, cert_file: P) -> Self
fn extract_certificate<P: AsRef<Path>>(cert_file: P) -> Certificate
pub fn epoch_reward_history( &self, epoch: u32 ) -> Result<EpochRewardsInfo, RestError>
pub fn updates( &self ) -> Result<HashMap<Hash, UpdateProposalStateDef>, RestError>
pub fn reward_history( &self, length: u32 ) -> Result<Vec<EpochRewardsInfo>, RestError>
pub fn remaining_rewards(&self) -> Result<Value, RestError>
pub fn stake_distribution(&self) -> Result<StakeDistributionDto, RestError>
pub fn account_votes( &self, address: Address ) -> Result<Option<Vec<AccountVotes>>, RestError>
pub fn account_votes_all( &self ) -> Result<HashMap<String, Vec<AccountVotes>>, RestError>
pub fn account_votes_with_plan_id( &self, vote_plan_id: VotePlanId, address: Address ) -> Result<Option<Vec<u8>>, RestError>
pub fn stake_pools(&self) -> Result<Vec<String>, RestError>
pub fn stake_distribution_at( &self, epoch: u32 ) -> Result<StakeDistributionDto, RestError>
pub fn stats(&self) -> Result<NodeStatsDto, RestError>
pub fn account_state(&self, id: &Identifier) -> Result<AccountState, RestError>
pub fn account_state_by_pk_raw( &self, bech32_str: &str ) -> Result<String, RestError>
pub fn account_state_by_pk( &self, bech32_str: &str ) -> Result<AccountState, RestError>
pub fn network_stats(&self) -> Result<Vec<PeerStats>, RestError>
pub fn p2p_quarantined(&self) -> Result<Vec<PeerRecord>, RestError>
pub fn p2p_non_public(&self) -> Result<Vec<PeerRecord>, RestError>
pub fn p2p_available(&self) -> Result<Vec<PeerRecord>, RestError>
pub fn p2p_view(&self) -> Result<Vec<String>, RestError>
pub fn tip(&self) -> Result<Hash, RestError>
pub fn fragment_logs( &self ) -> Result<HashMap<FragmentId, FragmentLog>, RestError>
pub fn settings(&self) -> Result<SettingsDto, RestError>
pub fn leaders_log(&self) -> Result<Vec<LeadershipLog>, RestError>
pub fn send_fragment( &self, fragment: Fragment ) -> Result<MemPoolCheck, RestError>
pub fn send_raw_fragment(&self, bytes: Vec<u8>) -> Result<(), RestError>
pub fn send_raw_fragments(&self, bytes: Vec<Vec<u8>>) -> Result<(), RestError>
pub fn block_as_bytes( &self, header_hash: &HeaderId ) -> Result<Vec<u8>, RestError>
pub fn shutdown(&self) -> Result<String, RestError>
pub fn block(&self, header_hash: &HeaderId) -> Result<Block, RestError>
pub fn fragments_statuses( &self, ids: Vec<String> ) -> Result<HashMap<String, FragmentStatus>, RestError>
pub fn send_fragment_batch( &self, fragments: Vec<Fragment>, fail_fast: bool ) -> Result<FragmentsProcessingSummary, RestError>
pub fn vote_plan_statuses(&self) -> Result<Vec<VotePlanStatus>, RestError>
pub fn set_origin<S: Into<String>>(&mut self, origin: S)
Trait Implementations§
source§impl Clone for JormungandrRest
impl Clone for JormungandrRest
source§fn clone(&self) -> JormungandrRest
fn clone(&self) -> JormungandrRest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for JormungandrRest
impl Send for JormungandrRest
impl Sync for JormungandrRest
impl Unpin for JormungandrRest
impl !UnwindSafe for JormungandrRest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request