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-deps
if you usebrew
on a Mac. Otherwise, check that rule in the Makefile for hints on what your system might require. Feel free to send PRs formake ubuntu-deps
or similar. -
Build.
make
should 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.sandbox
will allow testing algod and indexer APIs. The mnemonics and addresses in.env.sandbox
are automatically setup bysandbox
with plenty of algos. -
You can use
./example
as 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.
- Multisigs, contributed by @avislash
- indexer APIs
- kmd APIs
- msgpack responses (currently always uses JSON)