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 how to use the useChains hook.
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 how to use the useChain hook.
Example
import { chainId } from "@aave/react";
const { data, loading, error } = useChain({ chainId: chainId(1),});