This is an unofficial C++ library for calling v2 Algorand APIs. Inspired by Algoduino, but needed an implementation that was not tied to Arduino, and could use v2 APIs, which required msgpack of transactions, key handling, etc.
-
Install dependencies. Use
make brew-depsif you usebrewon a Mac. Otherwise, check that rule in the Makefile for hints on what your system might require. Feel free to send PRs formake ubuntu-depsor similar. -
Build.
makeshould be sufficient -
Obtain access to an algod (and perhaps indexer) to make your API calls to. For testing, the Agorand Sandbox is excellent. After bringing up a sandbox using the defaults, the variables in
.env.sandboxwill allow testing algod and indexer APIs. The mnemonics and addresses in.env.sandboxare automatically setup bysandboxwith plenty of algos. -
You can use
./exampleas a very simple exercise harness.
- algod APIs
- mnemonic/address/key handling
- All transaction types (provided as static functions on a unified Transaction class)
- Simple (single account) signatures
- Logicsigs, including delegated logisigs.
- multisig
- indexer APIs
- kmd APIs
- msgpack responses (currently always uses JSON)