Spokes#
Learn how to discover available spokes in Aave v4.
Spoke Data Structure#
Spoke data provide information about individual borrowing modules, including:
Identification: id, name, address, chain
Configuration: active status and module settings
Liquidation parameters: target health factor, max-bonus threshold, and bonus factor (
liquidationConfig)Summary metrics: supplied, borrowed, cap usage, connected hubs, and connected assets
- TypeScript
- GraphQL
- Solidity
The following TypeScript interfaces illustrate the core Spoke type:
Listing Available Spokes#
Discover all available Aave Spokes across supported networks.
- React
- TypeScript
- GraphQL
- Solidity
Use the useSpokes hook to fetch a list of available spokes.
See below for examples of SpokesRequest objects.
Fetching a Single Spoke#
Fetch a specific spoke by its address and chain ID.
- React
- TypeScript
- GraphQL
Use the useSpoke hook to fetch a specific spoke.
See below for examples of SpokeRequest objects.
Spoke Summary History#
Fetch historical deposits and borrows for a specific spoke over a chosen time window.
- React
- TypeScript
- GraphQL
Use the useSpokeSummaryHistory hook to fetch spoke-level history.