DeFi API
What is the DeFi API?
The DeFi API enables Web3 developers to quickly get liquidity reserves and pair data across multiple blockchains, in order to help them build and scale their dapps efficiently.
DeFi API Features
The DeFi API provides the following functionality out of the box to power the dapps you are building:
- Fetch the liquidity reserves for a given pair address AMMs (Uniswap-based).
- Fetch the pair address of a given token addresses from AMMs (Uniswap-based).
Supported Chains
The DeFi API supports multiple EVM chains:
Name | Chain Id (Int) | Chain Id (Hex) | EvmChain | Type |
---|---|---|---|---|
Ethereum Mainnet | 1 | 0x1 | EvmChain.ETHEREUM | Mainnet |
Ethereum Görli | 5 | 0x5 | EvmChain.GOERLI | Testnet |
Ethereum Sepolia | 11155111 | 0xaa36a7 | EvmChain.SEPOLIA | Testnet |
Polygon Mainnet | 137 | 0x89 | EvmChain.POLYGON | Mainnet |
Polygon Mumbai | 80001 | 0x13881 | EvmChain.MUMBAI | Testnet |
Binance Smart Chain Mainnet | 56 | 0x38 | EvmChain.BSC | Mainnet |
Binance Smart Chain Testnet | 97 | 0x61 | EvmChain.BSC_TESTNET | Testnet |
Avalanche C-Chain | 43114 | 0xa86a | EvmChain.AVALANCHE | Mainnet |
Fantom | 250 | 0xfa | EvmChain.FANTOM | Mainnet |
Cronos Mainnet | 25 | 0x19 | EvmChain.CRONOS | Mainnet |
Palm | 11297108109 | 0x2a15c308d | EvmChain.PALM | Mainnet |
Arbitrum | 42161 | 0xa4b1 | EvmChain.ARBITRUM | Mainnet |