How To Access Algorand via Algod API

Learn how to access Algorand via Algod API.

Step 1: To access Algorand via the available Algod methods, use the following native access endpoint:

  • Network: Algorand Mainnet
  • Request Type: GET / POST / DELETE
https://svc.blockdaemon.com/algorand/mainnet/native

Step 2: You should authorize your request. Learn more: Authentication Guide

Step 3: Add an Algorand method at the end of the query:

https://svc.blockdaemon.com/algorand/mainnet/native/YOUR_METHOD

Example Request for Algod API

Here is a cURL example for using GET /v2/ledger/supply to get the current supply reported by the ledger in Algorand Mainnet:

curl -X GET \
https://svc.blockdaemon.com/algorand/mainnet/native/v2/ledger/supply \
-H 'Authorization: Bearer YOUR_API_KEY'

The following is a typical response you will get:

{
    "current_round": 22988124,
    "online-money": 2388091813708583,
    "total-money": 7314443768632736
}

👋 Need Help?

Contact us through email or our support page for any issues, bugs, or assistance you may need.