Assets
Learn how to query and monitor asset information across Aave v4.
Assets represent ERC20 tokens that can be supplied, borrowed, or traded within the Aave protocol.
Asset Data Structure
Asset data provides comprehensive information about a specific token in the protocol, including:
Token identification: id, address, symbol, name, decimals
Aggregate metrics: total supplied, total borrowed, caps, and available amounts
Current price: fiat valuation
- TypeScript
- GraphQL
The following TypeScript interfaces illustrate the core Asset types:
Fetching Asset Information
Query detailed information about a specific asset.
- React
- TypeScript
- GraphQL
Use the useAsset hook to fetch asset information.
See below for examples of how to use the useAsset hook.
Asset Price History
Asset price history data provides time-series price information for an asset.
- React
- TypeScript
- GraphQL
Use the useAssetPriceHistory hook to fetch historical price data.
See below for examples of how to use the useAssetPriceHistory hook.
Asset Supply History
Asset supply history data provides time-series total supply information for an asset.
- React
- TypeScript
- GraphQL
Use the useAssetSupplyHistory hook to fetch historical supply data.
See below for examples of how to use the useAssetSupplyHistory hook.
Asset Borrow History
Asset borrow history data provides time-series total borrow information for an asset.
- React
- TypeScript
- GraphQL
Use the useAssetBorrowHistory hook to fetch historical borrow data.
See below for examples of how to use the useAssetBorrowHistory hook.