[][src]Struct algo_rust_sdk::algod::AlgodClient

pub struct AlgodClient { /* fields omitted */ }

Client for interacting with the Algorand protocol daemon

Implementations

impl AlgodClient[src]

pub fn new(address: &str, token: &str) -> AlgodClient[src]

pub fn new_with_headers(
    address: &str,
    token: &str,
    headers: HeaderMap
) -> AlgodClient
[src]

pub fn health(&self) -> Result<(), Error>[src]

Returns Ok if healthy

pub fn versions(&self) -> Result<Version, Error>[src]

Retrieves the current version

pub fn status(&self) -> Result<NodeStatus, Error>[src]

Gets the current node status

pub fn status_after_block(&self, round: Round) -> Result<NodeStatus, Error>[src]

Waits for a block to appear after the specified round and returns the node status at the time

pub fn block(&self, round: Round) -> Result<Block, Error>[src]

Get the block for the given round

pub fn ledger_supply(&self) -> Result<Supply, Error>[src]

Gets the current supply reported by the ledger

pub fn account_information(&self, address: &str) -> Result<Account, Error>[src]

pub fn pending_transactions(
    &self,
    limit: u64
) -> Result<PendingTransactions, Error>
[src]

Gets a list of unconfirmed transactions currently in the transaction pool

Sorted by priority in decreasing order and truncated at the specified limit, or returns all if specified limit is 0

pub fn pending_transaction_information(
    &self,
    transaction_id: &str
) -> Result<Transaction, Error>
[src]

Get a specified pending transaction

pub fn transactions(
    &self,
    address: &str,
    first_round: Option<Round>,
    last_round: Option<Round>,
    from_date: Option<String>,
    to_date: Option<String>,
    limit: Option<u64>
) -> Result<TransactionList, Error>
[src]

Get a list of confirmed transactions, limited to filters if specified

pub fn send_transaction(
    &self,
    signed_transaction: &SignedTransaction
) -> Result<TransactionID, Error>
[src]

Broadcasts a transaction to the network

pub fn raw_transaction(&self, raw: &[u8]) -> Result<TransactionID, Error>[src]

Broadcasts a raw transaction to the network

pub fn transaction(&self, transaction_id: &str) -> Result<Transaction, Error>[src]

Gets the information of a single transaction

pub fn transaction_information(
    &self,
    address: &str,
    transaction_id: &str
) -> Result<Transaction, Error>
[src]

Gets a specific confirmed transaction

pub fn suggested_fee(&self) -> Result<TransactionFee, Error>[src]

Gets suggested fee in units of micro-Algos per byte

pub fn transaction_params(&self) -> Result<TransactionParams, Error>[src]

Gets parameters for constructing a new transaction

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

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<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

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