[−][src]Struct algo_rust_sdk::algod::AlgodClient
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]
address: &str,
token: &str,
headers: HeaderMap
) -> AlgodClient
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]
&self,
limit: u64
) -> Result<PendingTransactions, Error>
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]
&self,
transaction_id: &str
) -> Result<Transaction, Error>
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]
&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>
Get a list of confirmed transactions, limited to filters if specified
pub fn send_transaction(
&self,
signed_transaction: &SignedTransaction
) -> Result<TransactionID, Error>
[src]
&self,
signed_transaction: &SignedTransaction
) -> Result<TransactionID, Error>
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]
&self,
address: &str,
transaction_id: &str
) -> Result<Transaction, Error>
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
impl RefUnwindSafe for AlgodClient
[src]
impl Send for AlgodClient
[src]
impl Sync for AlgodClient
[src]
impl Unpin for AlgodClient
[src]
impl UnwindSafe for AlgodClient
[src]
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> Same<T> for T
type Output = T
Should always be Self
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<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,