get https://deep-index.moralis.io/api/v2//reserves
Get the liquidity reserves for a given pair address. Only Uniswap V2 based exchanges supported at the moment.
Log in to see full request history
Response
Get the liquidity reserves for a given pair address. Only Uniswap V2 based exchanges supported at the moment.
xxxxxxxxxx
24import Moralis from 'moralis';
import { EvmChain } from '@moralisweb3/evm-utils';
​
try {
const chain = EvmChain.ETHEREUM;
​
// Pair Token address
const pairAddress = '0x1234567890123456789012345678901234567890';
​
await Moralis.start({
apiKey: 'YOUR_API_KEY',
// ...and any other configuration
});
​
const response = await Moralis.EvmApi.defi.getPairReserves({
pairAddress,
chain,
});
​
console.log(response?.result);
} catch (e) {
console.error(e);
}
Try It!
to start a request and see the response here! Or choose an example: