Algorand API Documentation
Overview
Bitquery's Algorand APIs let you query the chain through GraphQL — blocks, transactions, ALGO and ASA transfers, address balances, smart contract calls, parsed call arguments, and multi-hop fund flow. Replace the example addresses and asset IDs in any query with your own values to point them at real wallets and assets.
If you get stuck or need a data point that isn't covered here, reach out on Telegram.
Endpoint
Algorand GraphQL queries are served at https://graphql.bitquery.io.
What you can do with the Algorand API
- Pull blocks by proposer, height, or time window with protocol version, rewards, and timestamps.
- Get transactions with fees, types, senders, groups, and daily or per-address counts.
- Track ALGO and ASA transfers filtered by asset ID, sender, receiver, or date range.
- Look up native ALGO balances, multi-address snapshots, and smart contract bytecode.
- Count and filter smart contract calls by transaction type (
pay,acfg, and others). - Read parsed argument names, types, and values from smart contract calls and events.
- Trace ALGO and ASA flows across multiple hops with Coinpath.
How the Algorand API differs from running your own node
| Algorand node / indexer | Bitquery Algorand API |
|---|---|
| Raw chain state — you build the indexer | Pre-indexed and parsed: blocks, txs, transfers, app calls |
| No historical analytics out of the box | History, joins, aggregations, USD conversion on transfers |
| You decode transaction types and app args yourself | GraphQL response — pick the fields you need |
| Best for submitting transactions and full validation | Best for analytics, dashboards, wallet UIs, and compliance work |
Quick start
This query returns the 5 most recent Algorand blocks with height, hash, reward, proposer, and timestamp.
{
algorand(network: algorand) {
blocks(options: {desc: "height", limit: 5}) {
height
hash
reward
proposer {
address
}
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
}
}
}
API reference
Core data
- Algorand Blocks API — block lookups by proposer, height, or time, plus reward aggregates.
- Algorand Transactions API — transaction details, daily counts, unique senders, and hash lookups.
- Algorand Transfers API — ALGO and ASA transfer history with USD amounts.
Addresses and contracts
- Algorand Address API — ALGO balances, multi-address lookups, and smart contract bytecode.
- Algorand Smart Contract Calls API — app call counts, transaction-type filters, and new asset creation tracking.
- Algorand Arguments API — parsed argument names, types, and values from calls and events.
Fund tracing
- Algorand Coinpath API — multi-hop ALGO and ASA flow tracing for compliance and treasury work.