[][src]Struct uckb_jsonrpc_client::Client

pub struct Client { /* fields omitted */ }

Implementations

impl Client[src]

pub fn get_block(
    &self,
    block_hash: H256,
    verbosity: Option<u32>
) -> Result<Option<BlockView>>
[src]

pub fn get_block_by_number(
    &self,
    block_number: BlockNumber,
    verbosity: Option<u32>
) -> Result<Option<BlockView>>
[src]

pub fn get_header(
    &self,
    block_hash: H256,
    verbosity: Option<u32>
) -> Result<Option<HeaderView>>
[src]

pub fn get_header_by_number(
    &self,
    block_number: BlockNumber,
    verbosity: Option<u32>
) -> Result<Option<HeaderView>>
[src]

pub fn get_transaction(
    &self,
    tx_hash: H256
) -> Result<Option<TransactionWithStatus>>
[src]

pub fn get_block_hash(&self, block_number: BlockNumber) -> Result<Option<H256>>[src]

pub fn get_tip_header(&self, verbosity: Option<u32>) -> Result<HeaderView>[src]

pub fn get_live_cell(
    &self,
    out_point: OutPoint,
    with_data: bool
) -> Result<CellWithStatus>
[src]

pub fn get_tip_block_number(&self) -> Result<BlockNumber>[src]

pub fn get_current_epoch(&self) -> Result<EpochView>[src]

pub fn get_epoch_by_number(
    &self,
    epoch_number: EpochNumber
) -> Result<Option<EpochView>>
[src]

pub fn get_block_economic_state(
    &self,
    block_hash: H256
) -> Result<Option<BlockEconomicState>>
[src]

pub fn get_transaction_proof(
    &self,
    tx_hashes: Vec<H256>,
    block_hash: Option<H256>
) -> Result<TransactionProof>
[src]

pub fn verify_transaction_proof(
    &self,
    tx_proof: TransactionProof
) -> Result<Vec<H256>>
[src]

pub fn send_transaction(
    &self,
    tx: Transaction,
    outputs_validator: Option<OutputsValidator>
) -> Result<H256>
[src]

pub fn tx_pool_info(&self) -> Result<TxPoolInfo>[src]

pub fn clear_tx_pool(&self) -> Result<()>[src]

pub fn get_block_template(
    &self,
    bytes_limit: Option<u64>,
    proposals_limit: Option<u64>,
    max_version: Option<Version>
) -> Result<BlockTemplate>
[src]

pub fn submit_block(&self, work_id: String, block: Block) -> Result<H256>[src]

pub fn get_blockchain_info(&self) -> Result<ChainInfo>[src]

pub fn local_node_info(&self) -> Result<LocalNode>[src]

pub fn get_peers(&self) -> Result<Vec<RemoteNode>>[src]

pub fn get_banned_addresses(&self) -> Result<Vec<BannedAddr>>[src]

pub fn clear_banned_addresses(&self) -> Result<()>[src]

pub fn set_ban(
    &self,
    address: String,
    command: String,
    ban_time: Option<Timestamp>,
    absolute: Option<bool>,
    reason: Option<String>
) -> Result<()>
[src]

pub fn sync_state(&self) -> Result<SyncState>[src]

pub fn set_network_active(&self, state: bool) -> Result<()>[src]

pub fn add_node(&self, peer_id: String, address: String) -> Result<()>[src]

pub fn remove_node(&self, peer_id: String) -> Result<()>[src]

pub fn ping_peers(&self) -> Result<()>[src]

pub fn send_alert(&self, alert: Alert) -> Result<()>[src]

pub fn dry_run_transaction(&self, tx: Transaction) -> Result<DryRunResult>[src]

pub fn calculate_dao_maximum_withdraw(
    &self,
    out_point: OutPoint,
    block_hash: H256
) -> Result<Capacity>
[src]

pub fn jemalloc_profiling_dump(&self) -> Result<String>[src]

pub fn update_main_logger(&self, config: MainLoggerConfig) -> Result<()>[src]

pub fn set_extra_logger(
    &self,
    name: String,
    config_opt: Option<ExtraLoggerConfig>
) -> Result<()>
[src]

pub fn process_block_without_verify(
    &self,
    data: Block,
    broadcast: bool
) -> Result<Option<H256>>
[src]

pub fn truncate(&self, target_tip_hash: H256) -> Result<()>[src]

pub fn generate_block(
    &self,
    block_assembler_script: Option<Script>,
    block_assembler_message: Option<Bytes>
) -> Result<H256>
[src]

pub fn broadcast_transaction(
    &self,
    transaction: Transaction,
    cycles: Cycle
) -> Result<H256>
[src]

pub fn get_fork_block(&self, hash: H256) -> Result<Option<BlockView>>[src]

impl Client[src]

pub fn subscribe_new_tip_header<F>(&self, func: F) -> Result<()> where
    F: Fn(&str) -> Result<(), ()> + 'static + Send
[src]

pub fn subscribe_new_tip_block<F>(&self, func: F) -> Result<()> where
    F: Fn(&str) -> Result<(), ()> + 'static + Send
[src]

pub fn subscribe_new_transaction<F>(&self, func: F) -> Result<()> where
    F: Fn(&str) -> Result<(), ()> + 'static + Send
[src]

impl Client[src]

pub fn new(rt: Arc<RwLock<RawRuntime>>, rt01: Arc<RwLock<RawRuntime01>>) -> Self[src]

pub fn enable_tcp(&mut self, addr: &SocketAddr) -> Result<&mut Self>[src]

pub fn enable_http(&mut self, url: &Url) -> Result<&mut Self>[src]

Auto Trait Implementations

impl !RefUnwindSafe for Client

impl Send for Client

impl Sync for Client

impl Unpin for Client

impl !UnwindSafe for Client

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,