Algorand - Get Account Transactions

You can retrieve all transactions from an Algorand account by querying the RPC node with the Indexer endpoint.

Example request:

curl --location --request GET 'https://algorand-mainnet-indexer.gateway.tatum.io/v2/accounts/MLD3LCNGOK2SXAVNUYMW3WVG5LBN4Z5HFARB3VLMZCENFW############/transactions' \
--header 'x-api-key: {API_KEY}'
//Response:
{
    "current-round": 26834617,
    "next-token": "0DOZAQAAAAAMAAAA",
    "transactions": [
        {
            "asset-transfer-transaction": {
                "amount": 0,
                "asset-id": 27165954,
                "close-amount": 0,
                "receiver": "MLD3LCNGOK2SXAVNUYMW3WVG5LBN4Z5HFARB3VLMZCENFW############"
            },
            "close-rewards": 0,
            "closing-amount": 0,
            "confirmed-round": 26834571,
            "fee": 1000,
            "first-valid": 26834569,
...

Key Details

  • The endpoint /v2/accounts/{account-id}/transactions returns all transactions for a given account, sorted from newest to oldest.
  • Use the next-token field in the response to paginate through additional results.