Constructors
-
Algorand({required AlgodClient algodClient, required IndexerClient indexerClient})
-
Properties
-
algodClient
→ AlgodClient
-
The HTTP Client instance to interact with algod.
final
-
applicationManager
→ ApplicationManager
-
Get the application manager, used to perform application related tasks.
read-only
-
assetManager
→ AssetManager
-
Get the asset manager, used to perform asset related tasks.
read-only
-
hashCode
→ int
-
The hash code for this object. [...]
read-only, inherited
-
indexerClient
→ IndexerClient
-
The HTTP Client instance to interact with the indexer.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
createAccount()
→ Future<Account>
-
Create a new, random generated account.
-
genesis()
→ Future<String>
-
Gets the genesis information. [...]
-
getAccountByAddress(String address)
→ Future<AccountInformation>
-
Get the account information of the given address.
Given a specific account public key, this call returns the accounts
status, balance and spendable amounts [...]
-
getPendingTransactionById(String transactionId)
→ Future<PendingTransaction>
-
Get a specific pending transaction. [...]
-
getPendingTransactions({int max = 0})
→ Future<PendingTransactionsResponse>
-
Get the list of unconfirmed pending transactions currently in the transaction pool
sorted by priority, in decreasing order, truncated at the end at MAX. [...]
-
getPendingTransactionsByAddress(String address, {int max = 0})
→ Future<PendingTransactionsResponse>
-
Get the list of pending transactions by address, sorted by priority,
in decreasing order, truncated at the end at MAX. [...]
-
getSuggestedTransactionParams()
→ Future<TransactionParams>
-
Get the suggested parameters for constructing a new transaction. [...]
-
health()
→ Future<bool>
-
Checks if the node is healthy. [...]
-
indexer()
→ AlgorandIndexer
-
Get the algorand indexer which lets you search the blockchain.
-
loadAccountFromPrivateKey(String privateKey)
→ Future<Account>
-
Load an existing account from a private key.
Private key is a hexadecimal representation of the seed. [...]
-
loadAccountFromSeed(List<int> seed)
→ Future<Account>
-
Load an existing account from an rfc8037 private key.
Seed is the binary representation of the seed. [...]
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a non-existent method or property is accessed. [...]
inherited
-
restoreAccount(List<String> words)
→ Future<Account>
-
Load an existing account from a 25-word seed phrase. [...]
-
sendPayment({required Account account, required Address recipient, required int amount, String? note, bool waitForConfirmation = false, int timeout = 5})
→ Future<String>
-
Send a payment to the given recipient with the recommended transaction
parameters. [...]
-
sendTransaction(SignedTransaction transaction, {bool waitForConfirmation = false, int timeout = 5})
→ Future<String>
-
Broadcast a new (signed) transaction on the network. [...]
-
sendTransactions(List<SignedTransaction> transactions)
→ Future<String>
-
Group a list of (signed) transactions and broadcast it on the network.
This is mostly used for atomic transfers. [...]
-
status()
→ Future<NodeStatus>
-
Gets the current node status. [...]
-
statusAfterRound(int round)
→ Future<NodeStatus>
-
Gets the node status after waiting for the given round. [...]
-
supply()
→ Future<LedgerSupply>
-
Get the current supply reported by the ledger. [...]
-
toString()
→ String
-
A string representation of this object. [...]
inherited
-
waitForConfirmation(String transactionId, {int timeout = 5})
→ Future<PendingTransaction>
-
Get a specific pending transaction. [...]