Hi,
is there a way to “easily” get the LP adresses of an token? Not only for BSC / ETH , but also for AVAX, Fantom & Matic tokens?
Beside of that, is there an easy way to get the Owner/Dev address of the token-contract?
greetings
Hi,
is there a way to “easily” get the LP adresses of an token? Not only for BSC / ETH , but also for AVAX, Fantom & Matic tokens?
Beside of that, is there an easy way to get the Owner/Dev address of the token-contract?
greetings
You can get liquidy using getPairReserves
function.
https://docs.moralis.io/moralis-dapp/web3-api/defi-new#getpairreserves-new
I am not sure if it supports AVAX and Fantom as the docs only mentioned these as the exchanges.
uniswapv2, uniswapv3, sushiswapv2, pancakeswapv2, pancakeswapv1, quickswap
If the token contract has a view function to check the owner’s wallet address, then you can run a contract function to check the owner’s address.
Whether via Moralis or otherwise . . . is there a quality way (without guesswork [like UniswapV3 fees]) to list all trading pairs on all DEXes (within reason)?
Also, is there a quality way to match the pair to a chain (not just a DEX)?
You can check out the Covalent API.
Also, is there a quality way to match the pair to a chain (not just a DEX)?
You can check against a list of known pairs and their info (have all of this data cached for you to query) or maybe just call a read function for each chain to see if it works.
Gotcha. I came across it, but only glanced as they seemed more interested in telling you about why you should use them than how to use them.
I’ll take another look. My goal is to pull everything relevant local initially. I was doing the dynamic thing with basic “token transfers” + Moralis, but “pairs” is a bit more involved.