Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key
Version: 2.0

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:

NameChain Id (Int)Chain Id (Hex)EvmChainType
Ethereum Mainnet10x1EvmChain.ETHEREUMMainnet
Ethereum Sepolia111551110xaa36a7EvmChain.SEPOLIATestnet
Ethereum Holesky170000x4268EvmChain.HOLESKYTestnet
Polygon Mainnet1370x89EvmChain.POLYGONMainnet
Polygon Amoy800020x13881EvmChain.POLYGON_AMOYTestnet
Binance Smart Chain Mainnet560x38EvmChain.BSCMainnet
Binance Smart Chain Testnet970x61EvmChain.BSC_TESTNETTestnet
Avalanche C-Chain431140xa86aEvmChain.AVALANCHEMainnet
Fantom2500xfaEvmChain.FANTOMMainnet
Cronos Mainnet250x19EvmChain.CRONOSMainnet
Palm112971081090x2a15c308dEvmChain.PALMMainnet
Arbitrum421610xa4b1EvmChain.ARBITRUMMainnet
Gnosis1000x64EvmChain.GNOSISMainnet
Gnosis Chiado102000x27d8EvmChain.GNOSIS_TESTNETTestnet
Base84530x2105EvmChain.BASEMainnet
Base Sepolia845320x14a34EvmChain.BASE_SEPOLIATestnet
Optimism100xaEvmChain.OPTIMISMMainnet
Optimism Sepolia111554200xaa37dcEvmChain.OPTIMISM_SEPOLIATestnet
Linea591440xe708EvmChain.LINEAMainnet
Linea Sepolia591410xe705EvmChain.LINEA_SEPOLIATestnet
Moonbeam12840x504EvmChain.MOONBEAMMainnet
Moonriver12850x505EvmChain.MOONRIVERTestnet
Moonbase12870x507EvmChain.MOONBASETestnet
Chiliz Mainnet888880x15b38EvmChain.CHILIZMainnet
Chiliz Testnet888820x15b32EvmChain.CHILIZ_TESTNETTestnet