Aave V3
Historical transactions
Aave V3
Aerodrome Slipstream
Morpho
Uniswap V3
Universal
Transaction Batching
Aave V3
Historical transactions
This endpoint retrieves historical transactions for a user on the AAVE platform.
It returns a list of transactions including deposits, withdrawals, borrows, and repayments. Each transaction includes details such as the token, amount, timestamp, and transaction type. This provides a comprehensive view of the user’s historical activity within the AAVE protocol.
GET
/
v0
/
aave
/
historical_transactions
/
get
from compass_api_sdk import CompassAPISDK, models
with CompassAPISDK(
api_key_auth="<YOUR_API_KEY_HERE>",
) as cas_client:
res = cas_client.aave_v3.historical_transactions(chain=models.AaveHistoricalTransactionsChain.ARBITRUM_MAINNET, user_address="0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
# Handle response
print(res)
{
"total": 123,
"offset": 123,
"limit": 123,
"transactions": [
{
"id": "<string>",
"timestamp": 123,
"txHash": "<string>",
"action": "supply",
"supply": {
"amount": "<string>",
"reserve": {
"symbol": "<string>",
"decimals": 123
},
"assetPriceUSD": "<string>"
},
"redeemUnderlying": {
"amount": "<string>",
"reserve": {
"symbol": "<string>",
"decimals": 123
},
"assetPriceUSD": "<string>"
},
"borrow": {
"amount": "<string>",
"borrowRateMode": "<string>",
"borrowRate": "<string>",
"stableTokenDebt": "<string>",
"variableTokenDebt": "<string>",
"reserve": {
"symbol": "<string>",
"decimals": 123
},
"assetPriceUSD": "<string>"
},
"usageAsCollateral": {
"fromState": "<string>",
"toState": "<string>",
"reserve": {
"symbol": "<string>",
"decimals": 123
}
},
"repay": {
"amount": "<string>",
"reserve": {
"symbol": "<string>",
"decimals": 123
},
"assetPriceUSD": "<string>"
},
"swapBorrowRate": {
"borrowRateModeFrom": "<string>",
"borrowRateModeTo": "<string>",
"variableBorrowRate": "<string>",
"stableBorrowRate": "<string>",
"reserve": {
"symbol": "<string>",
"decimals": 123
}
},
"liquidationCall": {
"collateralAmount": "<string>",
"collateralReserve": {
"symbol": "<string>",
"decimals": 123
},
"principalAmount": "<string>",
"principalReserve": {
"symbol": "<string>",
"decimals": 123
},
"collateralAssetPriceUSD": "<string>",
"borrowAssetPriceUSD": "<string>"
}
}
]
}
Query Parameters
The chain to use.
Available options:
base:mainnet
, ethereum:mainnet
, arbitrum:mainnet
Response
200
application/json
Successful Response
Response model for getting Aave historical transactions.
Was this page helpful?
from compass_api_sdk import CompassAPISDK, models
with CompassAPISDK(
api_key_auth="<YOUR_API_KEY_HERE>",
) as cas_client:
res = cas_client.aave_v3.historical_transactions(chain=models.AaveHistoricalTransactionsChain.ARBITRUM_MAINNET, user_address="0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
# Handle response
print(res)
{
"total": 123,
"offset": 123,
"limit": 123,
"transactions": [
{
"id": "<string>",
"timestamp": 123,
"txHash": "<string>",
"action": "supply",
"supply": {
"amount": "<string>",
"reserve": {
"symbol": "<string>",
"decimals": 123
},
"assetPriceUSD": "<string>"
},
"redeemUnderlying": {
"amount": "<string>",
"reserve": {
"symbol": "<string>",
"decimals": 123
},
"assetPriceUSD": "<string>"
},
"borrow": {
"amount": "<string>",
"borrowRateMode": "<string>",
"borrowRate": "<string>",
"stableTokenDebt": "<string>",
"variableTokenDebt": "<string>",
"reserve": {
"symbol": "<string>",
"decimals": 123
},
"assetPriceUSD": "<string>"
},
"usageAsCollateral": {
"fromState": "<string>",
"toState": "<string>",
"reserve": {
"symbol": "<string>",
"decimals": 123
}
},
"repay": {
"amount": "<string>",
"reserve": {
"symbol": "<string>",
"decimals": 123
},
"assetPriceUSD": "<string>"
},
"swapBorrowRate": {
"borrowRateModeFrom": "<string>",
"borrowRateModeTo": "<string>",
"variableBorrowRate": "<string>",
"stableBorrowRate": "<string>",
"reserve": {
"symbol": "<string>",
"decimals": 123
}
},
"liquidationCall": {
"collateralAmount": "<string>",
"collateralReserve": {
"symbol": "<string>",
"decimals": 123
},
"principalAmount": "<string>",
"principalReserve": {
"symbol": "<string>",
"decimals": 123
},
"collateralAssetPriceUSD": "<string>",
"borrowAssetPriceUSD": "<string>"
}
}
]
}