post https://rest-api.hellomoon.io/v0/defi/liquidity-pools/metadata
Metadata on Liquidity Pools such as pool name and token names
Examples
Get the metadata of an LP by address
const axios = require("axios");
const url = "https://rest-api.hellomoon.io/v0/defi/liquidity-pools/metadata";
async function getLPMetadata() {
const { data } = await axios.post(
url,
{
"poolAddress": "HJPjoWUrhoZzkNfRpHuieeFk9WcZWjwy6PBjZ81ngndJ"
},
{
headers: {
Accept: "application/json",
"Content-Type": "application/json",
Authorization: "Bearer <your_token>",
},
}
);
console.log(data);
}