[−][src]Struct uckb_jsonrpc_client::Client
Implementations
impl Client
[src]
pub fn get_block(
&self,
block_hash: H256,
verbosity: Option<u32>
) -> Result<Option<BlockView>>
[src]
&self,
block_hash: H256,
verbosity: Option<u32>
) -> Result<Option<BlockView>>
pub fn get_block_by_number(
&self,
block_number: BlockNumber,
verbosity: Option<u32>
) -> Result<Option<BlockView>>
[src]
&self,
block_number: BlockNumber,
verbosity: Option<u32>
) -> Result<Option<BlockView>>
pub fn get_header(
&self,
block_hash: H256,
verbosity: Option<u32>
) -> Result<Option<HeaderView>>
[src]
&self,
block_hash: H256,
verbosity: Option<u32>
) -> Result<Option<HeaderView>>
pub fn get_header_by_number(
&self,
block_number: BlockNumber,
verbosity: Option<u32>
) -> Result<Option<HeaderView>>
[src]
&self,
block_number: BlockNumber,
verbosity: Option<u32>
) -> Result<Option<HeaderView>>
pub fn get_transaction(
&self,
tx_hash: H256
) -> Result<Option<TransactionWithStatus>>
[src]
&self,
tx_hash: H256
) -> Result<Option<TransactionWithStatus>>
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]
&self,
out_point: OutPoint,
with_data: bool
) -> Result<CellWithStatus>
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]
&self,
epoch_number: EpochNumber
) -> Result<Option<EpochView>>
pub fn get_block_economic_state(
&self,
block_hash: H256
) -> Result<Option<BlockEconomicState>>
[src]
&self,
block_hash: H256
) -> Result<Option<BlockEconomicState>>
pub fn get_transaction_proof(
&self,
tx_hashes: Vec<H256>,
block_hash: Option<H256>
) -> Result<TransactionProof>
[src]
&self,
tx_hashes: Vec<H256>,
block_hash: Option<H256>
) -> Result<TransactionProof>
pub fn verify_transaction_proof(
&self,
tx_proof: TransactionProof
) -> Result<Vec<H256>>
[src]
&self,
tx_proof: TransactionProof
) -> Result<Vec<H256>>
pub fn get_fork_block(
&self,
block_hash: H256,
verbosity: Option<u32>
) -> Result<Option<BlockView>>
[src]
&self,
block_hash: H256,
verbosity: Option<u32>
) -> Result<Option<BlockView>>
pub fn send_transaction(
&self,
tx: Transaction,
outputs_validator: Option<OutputsValidator>
) -> Result<H256>
[src]
&self,
tx: Transaction,
outputs_validator: Option<OutputsValidator>
) -> Result<H256>
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]
&self,
bytes_limit: Option<u64>,
proposals_limit: Option<u64>,
max_version: Option<Version>
) -> Result<BlockTemplate>
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]
&self,
address: String,
command: String,
ban_time: Option<Timestamp>,
absolute: Option<bool>,
reason: Option<String>
) -> Result<()>
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]
&self,
out_point: OutPoint,
block_hash: H256
) -> Result<Capacity>
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]
&self,
name: String,
config_opt: Option<ExtraLoggerConfig>
) -> Result<()>
pub fn process_block_without_verify(
&self,
data: Block,
broadcast: bool
) -> Result<Option<H256>>
[src]
&self,
data: Block,
broadcast: bool
) -> Result<Option<H256>>
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]
&self,
block_assembler_script: Option<Script>,
block_assembler_message: Option<Bytes>
) -> Result<H256>
pub fn broadcast_transaction(
&self,
transaction: Transaction,
cycles: Cycle
) -> Result<H256>
[src]
&self,
transaction: Transaction,
cycles: Cycle
) -> Result<H256>
impl Client
[src]
pub fn subscribe_new_tip_header<F>(&self, func: F) -> Result<()> where
F: Fn(&str) -> Result<(), ()> + 'static + Send,
[src]
F: Fn(&str) -> Result<(), ()> + 'static + Send,
pub fn subscribe_new_tip_block<F>(&self, func: F) -> Result<()> where
F: Fn(&str) -> Result<(), ()> + 'static + Send,
[src]
F: Fn(&str) -> Result<(), ()> + 'static + Send,
pub fn subscribe_new_transaction<F>(&self, func: F) -> Result<()> where
F: Fn(&str) -> Result<(), ()> + 'static + Send,
[src]
F: Fn(&str) -> Result<(), ()> + 'static + Send,
impl Client
[src]
pub fn new(rt: Arc<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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,