Algorand class
Properties
algodClient
→ AlgodClient
The HTTP Client instance to interact with algod.
final
applicationManager
→ ApplicationManager
Get the application manager, used to perform application related tasks.
no setter
assetManager
→ AssetManager
Get the asset manager, used to perform asset related tasks.
no setter
hashCode
→ int
The hash code for this object.
no setter inherited
indexerClient
→ IndexerClient
The HTTP Client instance to interact with the indexer.
final
kmd
→ DefaultApi
Get the key management daemon.
no setter
runtimeType
→ Type
A representation of the runtime type of the object.
no setter 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
getBalance (String address )
→ Future <int >
Get the balance (in microAlgos) of the given address.
Given a specific account public key, this call returns the current
balance.
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 nonexistent method or property is accessed.
inherited
registerOffline ({required Account account })
→ Future <String >
Register an account offline.
registerOnline ({required ParticipationPublicKey votePK , required VRFPublicKey selectionPK , required int voteFirst , required int voteLast , required int voteKeyDilution , required Account account })
→ Future <String >
Register an account online.
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.
sendRawTransaction (Uint8List transaction , {bool waitForConfirmation = false , int timeout = 5 })
→ Future <String >
Broadcast a new (signed) transaction on the network.
sendRawTransactions (List <Uint8List > transactions , {bool waitForConfirmation = false , int timeout = 5 })
→ Future <String >
Broadcast a list of (signed) transaction on the network.
sendTransaction (SignedTransaction transaction , {bool waitForConfirmation = false , int timeout = 5 })
→ Future <String >
Broadcast a new (signed) transaction on the network.
sendTransactions (List <SignedTransaction > transactions , {bool waitForConfirmation = false , int timeout = 5 })
→ Future <String >
Group a list of (signed) transactions and broadcast it on the network.
This is mostly used for atomic transfers.
setAlgodUrl (String baseUrl )
→ void
Set the base url of the AlgodClient .
setIndexerUrl (String baseUrl )
→ void
Set the base url of the IndexerClient .
setKmdUrl (String baseUrl )
→ void
Set the base url of the IndexerClient .
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 >
Utility function to wait on a transaction to be confirmed.
The timeout parameter indicates how many rounds do you wish to check
pending transactions for.