[−][src]Struct tron_api_client::client::Client
Implementations
impl Client
[src]
pub fn new(base_url: String) -> Self
[src]
pub fn for_network(network: Network) -> Self
[src]
pub fn for_shasta() -> Self
[src]
pub fn for_main() -> Self
[src]
pub async fn get_node_info<'_>(&'_ self) -> Result<NodeInfo, Error>
[src]
pub async fn list_nodes<'_>(&'_ self) -> Result<NodeList, Error>
[src]
pub async fn list_witnesses<'_>(&'_ self) -> Result<WitnessList, Error>
[src]
pub async fn get_chain_parameters<'_>(
&'_ self
) -> Result<ChainParameters, Error>
[src]
&'_ self
) -> Result<ChainParameters, Error>
pub async fn get_block_by_num<'_>(&'_ self, num: u64) -> Result<Block, Error>
[src]
pub async fn get_block_by_id<'_, '_>(
&'_ self,
id: &'_ str
) -> Result<Block, Error>
[src]
&'_ self,
id: &'_ str
) -> Result<Block, Error>
pub async fn get_now_block<'_>(&'_ self) -> Result<Block, Error>
[src]
pub async fn get_block_by_latest_num<'_>(
&'_ self,
num: u64
) -> Result<BlockList, Error>
[src]
&'_ self,
num: u64
) -> Result<BlockList, Error>
pub async fn get_block_by_limit_next<'_>(
&'_ self,
start_num: u64,
end_num: u64
) -> Result<BlockList, Error>
[src]
&'_ self,
start_num: u64,
end_num: u64
) -> Result<BlockList, Error>
pub async fn get_account<'_>(
&'_ self,
address: Address
) -> Result<Account, Error>
[src]
&'_ self,
address: Address
) -> Result<Account, Error>
pub async fn get_account_net<'_>(
&'_ self,
address: Address
) -> Result<AccountNet, Error>
[src]
&'_ self,
address: Address
) -> Result<AccountNet, Error>
pub async fn get_transaction_by_id<'_>(
&'_ self,
tx_id: TxId
) -> Result<Transaction, Error>
[src]
&'_ self,
tx_id: TxId
) -> Result<Transaction, Error>
pub async fn get_transaction_info_by_id<'_>(
&'_ self,
tx_id: TxId
) -> Result<TransactionInfo, Error>
[src]
&'_ self,
tx_id: TxId
) -> Result<TransactionInfo, Error>
pub async fn get_contract<'_>(
&'_ self,
address: Address
) -> Result<Contract, Error>
[src]
&'_ self,
address: Address
) -> Result<Contract, Error>
pub async fn get_asset_issue_list<'_>(&'_ self) -> Result<AssetIssueList, Error>
[src]
Trait Implementations
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,
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.
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>,