pub struct RpcClient { /* private fields */ }Expand description
RpcClient
Implementations§
Source§impl RpcClient
impl RpcClient
pub fn new(uri: &str) -> Self
pub fn inner(&self) -> &Rpc
pub fn get_blockchain_info(&self) -> ChainInfo
pub fn send_transaction(&self, tx: Transaction) -> Byte32
pub fn get_transaction(&self, tx_hash: H256) -> Option<TransactionWithStatus>
pub fn get_live_cells_by_lock_hash( &self, lock_hash: Byte32, page: u64, per_page: u64, reverse_order: Option<bool>, ) -> Vec<LiveCell>
pub fn get_transactions_by_lock_hash( &self, lock_hash: Byte32, page: u64, per_page: u64, reverse_order: Option<bool>, ) -> Vec<CellTransaction>
pub fn index_lock_hash( &self, lock_hash: Byte32, index_from: Option<CoreBlockNumber>, ) -> LockHashIndexState
pub fn deindex_lock_hash(&self, lock_hash: Byte32)
pub fn get_lock_hash_index_states(&self) -> Vec<LockHashIndexState>
pub fn get_block_by_number(&self, n: BlockNumber) -> Option<BlockView>
Auto Trait Implementations§
impl !Freeze for RpcClient
impl !RefUnwindSafe for RpcClient
impl Send for RpcClient
impl Sync for RpcClient
impl Unpin for RpcClient
impl !UnwindSafe for RpcClient
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<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 more