Algoduino
0.2
An easy to use C++ Library to interact with the Algorand Blockchain.
|
#include <Algoduino.h>
Public Member Functions | |
Algoduino (String ssid, String password, String apiKey, Network network) | |
Initialize the connection. More... | |
void | begin (void) |
Start the Wifi connection. | |
String | getHealth (void) |
Get the network health. More... | |
AccountInformation | getAccountInformation (String address) |
Get account information. More... | |
String | getConfirmedTransactionInformation (String address, String txid) |
Get a specific confirmed transaction. More... | |
String | getConfirmedTransactionsList (String address) |
Get a specific confirmed transaction. More... | |
String | getPendingTransactionInformation (String txid) |
Get a specific pending transaction. More... | |
String | getPendingTransactionsList (void) |
Get a list of unconfirmed transactions currently in the transaction pool. More... | |
String | getPendingTransactionsList (String address) |
Get a list of unconfirmed transactions currently in the transaction pool by address. More... | |
AssetInformation | getAssetInformation (String index) |
Get asset information. More... | |
String | getAssetsList (String max, String index) |
Get List of assets. More... | |
String | getBlock (String round) |
Get the block for the given round. More... | |
LedgerSupply | getLedgerSupply (void) |
Get the current supply reported by the ledger. More... | |
Status | getStatus (void) |
Gets the current node status. More... | |
Status | getStatus (String round) |
Gets the node status after waiting for the given round. More... | |
TransactionInformation | getTransactionInformation (String txid) |
Get the transaction note from a single transaction. More... | |
int | getTransactionsFee (void) |
Get the suggested transaction fee. More... | |
TransactionParams | getTransactionParams (void) |
Get parameters for constructing a new transaction. More... | |
Version | getVersions (void) |
Get the current version of the network. More... | |
Algoduino.h - Algorand IoT library for Arduino Copyright (c) 2020 Algoduino. All right reserved. For the full copyright and license information, please view the LICENSE file that was distributed with this source code. Algoduino class.
Algoduino::Algoduino | ( | String | ssid, |
String | password, | ||
String | apiKey, | ||
Network | network | ||
) |
Initialize the connection.
ssid | Wifi network SSID. |
password | Wifi network password. |
apiKey | API key to connect to a node. |
network | Algorand network: BETANET, TESTNET or MAINNET. |
AccountInformation Algoduino::getAccountInformation | ( | String | address | ) |
Get account information.
address | An account public key. |
AssetInformation Algoduino::getAssetInformation | ( | String | index | ) |
Get asset information.
index | Asset index. |
String Algoduino::getAssetsList | ( | String | max, |
String | index | ||
) |
Get List of assets.
max | Maximum number of assets to fetch. |
index | Asset index. |
String Algoduino::getBlock | ( | String | round | ) |
Get the block for the given round.
round | The round from which to fetch block information. |
String Algoduino::getConfirmedTransactionInformation | ( | String | address, |
String | txid | ||
) |
Get a specific confirmed transaction.
address | An account public key. |
txid | A transaction id. |
String Algoduino::getConfirmedTransactionsList | ( | String | address | ) |
Get a specific confirmed transaction.
address | An account public key. |
String Algoduino::getHealth | ( | void | ) |
Get the network health.
LedgerSupply Algoduino::getLedgerSupply | ( | void | ) |
Get the current supply reported by the ledger.
String Algoduino::getPendingTransactionInformation | ( | String | txid | ) |
Get a specific pending transaction.
txid | A transaction id. |
String Algoduino::getPendingTransactionsList | ( | String | address | ) |
Get a list of unconfirmed transactions currently in the transaction pool by address.
address | An account public key. |
String Algoduino::getPendingTransactionsList | ( | void | ) |
Get a list of unconfirmed transactions currently in the transaction pool.
Status Algoduino::getStatus | ( | String | round | ) |
Gets the node status after waiting for the given round.
round | The round from which to fetch block information. |
Status Algoduino::getStatus | ( | void | ) |
Gets the current node status.
TransactionInformation Algoduino::getTransactionInformation | ( | String | txid | ) |
Get the transaction note from a single transaction.
txid | A transaction id. |
TransactionParams Algoduino::getTransactionParams | ( | void | ) |
Get parameters for constructing a new transaction.
int Algoduino::getTransactionsFee | ( | void | ) |
Get the suggested transaction fee.
Version Algoduino::getVersions | ( | void | ) |
Get the current version of the network.