[][src]Struct tron_api_client::client::Client

pub struct Client { /* fields omitted */ }

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]

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]

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]

pub async fn get_block_by_limit_next<'_>(
    &'_ self,
    start_num: u64,
    end_num: u64
) -> Result<BlockList, Error>
[src]

pub async fn get_account<'_>(
    &'_ self,
    address: Address
) -> Result<Account, Error>
[src]

pub async fn get_account_net<'_>(
    &'_ self,
    address: Address
) -> Result<AccountNet, Error>
[src]

pub async fn get_transaction_by_id<'_>(
    &'_ self,
    tx_id: TxId
) -> Result<Transaction, Error>
[src]

pub async fn get_transaction_info_by_id<'_>(
    &'_ self,
    tx_id: TxId
) -> Result<TransactionInfo, Error>
[src]

pub async fn get_contract<'_>(
    &'_ self,
    address: Address
) -> Result<Contract, Error>
[src]

pub async fn get_asset_issue_list<'_>(&'_ self) -> Result<AssetIssueList, Error>[src]

Trait Implementations

impl Debug for Client[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.