How to get the token addresses from an LP address?

I’m trying to find a query that will help me get the token addresses of the token pair from an LP address. Is this something I need to look for in web3.js?

Hey @markyjennings

Each LP contract has methods like : token0 and token1. They will return you addresses of tokens in LP pair

You can use Web3 functionality in the Cloud Code (https://docs.moralis.io/cloud-functions-1#web3)
From the frontend https://docs.moralis.io/web3

Hope it will help you :man_factory_worker:

2 Likes