Chains
Learn how to discover supported blockchain networks in Aave v4.
Chain Structure
Chain data provides information about blockchain networks supported by Aave v4, including:
Identification: name, chain ID, icon URL
Configuration: explorer URL, whether it is a testnet
Native token details: wrapped token address and metadata
- TypeScript
- GraphQL
The following TypeScript interface illustrates the core Chain type:
Listing Supported Chains
Discover all blockchain networks supported by Aave v4.
- React
- TypeScript
- GraphQL
Use the useChains hook to fetch a list of supported chains.
See below for examples of ChainsRequest objects.
Where ChainsFilter is one of:
ChainsFilter.ALL - All chains
ChainsFilter.MAINNET_ONLY - Mainnets only
ChainsFilter.TESTNET_ONLY - Testnets only
Fetching a Single Chain
Get detailed information about a specific blockchain network by its chain ID.
- React
- TypeScript
- GraphQL
Use the useChain hook to fetch a specific chain.
See below for an example of a ChainRequest object.
Example
import { chainId } from "@aave/react";
const request: ChainRequest = { chainId: chainId(1),};