LP Withdrawal/Deposit

The LP Withdrawal/Deposit endpoint provides the pair of token data that were deposited or withdrawn from a liquidity pool.
Alongside the token data, the endpoint also provides the user account, amount of tokens deposited or withdrawn, and the program id that was used to execute the transaction.

Examples

List withdrawls from LPs involving wSOL on Whirlpool

const axios = require("axios");

const url = "https://rest-api.hellomoon.io/v0/defi/liquidity-pools/withdrawals-deposits";

async function getWithdrawals() {
    const { data } = await axios.post(
        url,
        {
			"programId": "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc",
			"actionType": "removeLiquidity",
			"tokenMintA": "So11111111111111111111111111111111111111112"
		},
        {
            headers: {
                Accept: "application/json",
                "Content-Type": "application/json",
                Authorization: "Bearer <your_token>",
            },
        }
    );

    console.log(data);
}
Language
Credentials
Bearer
JWT
Click Try It! to start a request and see the response here!