Skip to content

Algorand

Reads the official Algorand Indexer REST API over aiohttp, which gives async requests and the HTTP status needed to recognise rate limits. py-algorand-sdk (algosdk) handles address validation and encoding.

Networks

--network Endpoint
testnet (default) https://testnet-idx.4160.nodely.dev
mainnet https://mainnet-idx.4160.nodely.dev
localnet http://localhost:8980 (AlgoKit LocalNet)

To use your own endpoint, set these in .env, replacing TESTNET as needed:

ALGORAND_TESTNET_INDEXER_SERVER=https://your-indexer.example
ALGORAND_TESTNET_INDEXER_TOKEN=your-token

Commands

multichain-indexer index account <address>
multichain-indexer index asset <asa-id>
multichain-indexer index app <app-id>
multichain-indexer sync <address>
multichain-indexer metrics --days 30 --account <address>
multichain-indexer export --format csv --output transactions.csv

sync can be stopped at any point and resumes from the next page it had not stored.

Amounts are held in microAlgos and shown in Algo. An asset transfer's amount is in the ASA's base units.

The native block

Bases: NativeData

A top-level transaction.

The shared amount is in microAlgos for a payment and in the ASA's base units for an asset transfer. The shared fee covers this transaction and every inner transaction it spawned; own_fee is this transaction's part alone. pq is set when a native post-quantum account signed it.

inner_count property

Inner transactions at every depth.

Bases: AlgorandTransaction

A transaction spawned by an application. Inner transactions have no ID of their own.

Bases: NativeData

Account state. auth_addr is set only on a rekeyed account.

pq is set when the Indexer lists the account as signing with pqsig.

Bases: NativeData

Bases: NativeData

Metrics

metrics adds these to the shared figures, in its native block:

Field Meaning
fees_microalgos Fees paid, including inner transactions
app_calls Top-level application calls
asa_opt_ins ASA opt-ins
group_transaction_share Share of transactions in an atomic group
inner_transactions Inner transactions at every depth
top_asas_by_transfers The ten most transferred ASAs

Example

examples/algorand/ has a script and a notebook.