Struct grin_wallet_impls::HTTPNodeClient
source · pub struct HTTPNodeClient { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Clone for HTTPNodeClient
impl Clone for HTTPNodeClient
source§fn clone(&self) -> HTTPNodeClient
fn clone(&self) -> HTTPNodeClient
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 moresource§impl NodeClient for HTTPNodeClient
impl NodeClient for HTTPNodeClient
source§fn post_tx(&self, tx: &Transaction, fluff: bool) -> Result<(), Error>
fn post_tx(&self, tx: &Transaction, fluff: bool) -> Result<(), Error>
Posts a transaction to a grin node
source§fn get_chain_tip(&self) -> Result<(u64, String), Error>
fn get_chain_tip(&self) -> Result<(u64, String), Error>
Return the chain tip from a given node
source§fn get_kernel(
&mut self,
excess: &Commitment,
min_height: Option<u64>,
max_height: Option<u64>
) -> Result<Option<(TxKernel, u64, u64)>, Error>
fn get_kernel( &mut self, excess: &Commitment, min_height: Option<u64>, max_height: Option<u64> ) -> Result<Option<(TxKernel, u64, u64)>, Error>
Get kernel implementation
source§fn get_outputs_from_node(
&self,
wallet_outputs: Vec<Commitment>
) -> Result<HashMap<Commitment, (String, u64, u64)>, Error>
fn get_outputs_from_node( &self, wallet_outputs: Vec<Commitment> ) -> Result<HashMap<Commitment, (String, u64, u64)>, Error>
Retrieve outputs from node
source§fn node_api_secret(&self) -> Option<String>
fn node_api_secret(&self) -> Option<String>
Return the node api secret
source§fn set_node_url(&mut self, node_url: &str)
fn set_node_url(&mut self, node_url: &str)
Set the node URL
source§fn set_node_api_secret(&mut self, node_api_secret: Option<String>)
fn set_node_api_secret(&mut self, node_api_secret: Option<String>)
Change the API secret
source§fn get_version_info(&mut self) -> Option<NodeVersionInfo>
fn get_version_info(&mut self) -> Option<NodeVersionInfo>
Returns the api version string and block header version as reported
by the node. Result can be cached for later use
source§fn get_outputs_by_pmmr_index(
&self,
start_index: u64,
end_index: Option<u64>,
max_outputs: u64
) -> Result<(u64, u64, Vec<(Commitment, RangeProof, bool, u64, u64)>), Error>
fn get_outputs_by_pmmr_index( &self, start_index: u64, end_index: Option<u64>, max_outputs: u64 ) -> Result<(u64, u64, Vec<(Commitment, RangeProof, bool, u64, u64)>), Error>
Get a list of outputs from the node by traversing the UTXO
set in PMMR index order.
Returns
(last available output index, last insertion index retrieved,
outputs(commit, proof, is_coinbase, height, mmr_index))
Auto Trait Implementations§
impl Freeze for HTTPNodeClient
impl !RefUnwindSafe for HTTPNodeClient
impl Send for HTTPNodeClient
impl Sync for HTTPNodeClient
impl Unpin for HTTPNodeClient
impl !UnwindSafe for HTTPNodeClient
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
source§impl<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
source§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
source§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.