Skip to main content
GET
/
v1
/
aave
/
historical_transactions
Python (SDK)
from compass_api_sdk import CompassAPI, models


with CompassAPI(
    api_key_auth="<YOUR_API_KEY_HERE>",
) as compass_api:

    res = compass_api.aave_v3.aave_historical_transactions(chain=models.V1AaveHistoricalTransactionsChain.BASE, user_address="0x3254f3b1918637ba924e3F18968Cb74219974b63", offset=0, limit=100)

    # Handle response
    print(res)
{
  "offset": 123,
  "limit": 123,
  "transactions": [
    {
      "id": "<string>",
      "timestamp": 123,
      "txHash": "<string>",
      "amount": 1,
      "borrowRateMode": 1,
      "reserve": {
        "symbol": "<string>",
        "decimals": 123,
        "name": "<string>",
        "underlyingAsset": "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45"
      },
      "assetPriceUSD": 1,
      "action": "<string>",
      "block": 123
    }
  ]
}

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Query Parameters

offset
integer
default:0

The offset of the first item to return.

limit
integer
default:100

The number of items to return.

Required range: 0 < x <= 1000
chain
enum<string>
default:base
required
Available options:
arbitrum,
base,
ethereum
user_address
string
default:0x3254f3b1918637ba924e3F18968Cb74219974b63
required

The address of the user to get historical transactions for.

Response

Successful Response

Response model for getting Aave historical transactions.

offset
integer
required

Specifies how many transactions to skip before returning results, letting you choose the starting point for the data you want to receive.

limit
integer
required

Sets the maximum number of transactions to include in the response, helping control the size of the returned dataset.

transactions
Transactions · array
required
  • Borrow
  • LiquidationCall
  • RedeemUnderlying
  • Repay
  • Supply
  • SwapBorrowRate
  • UsageAsCollateral