DeFi Lending

The DeFi Lending endpoint can be used to track and verify borrowing and repayment of digital assets including SPL tokens and stablecoins on the Solana blockchain.

For example, get activity on popular lending protocols like Solend, so you know where and what token to lend.

Examples

Track lending activity for a wallet

const axios = require("axios");

const url = "https://rest-api.hellomoon.io/v0/defi/lending";

async function getLendingActivity() {
    const { data } = await axios.post(
        url,
        {
			"userAccount": "FqRXiaGCPTknwME5xJDfKvTDctkMraBDqsVRcK7yG1kA"
		},
        {
            headers: {
                Accept: "application/json",
                "Content-Type": "application/json",
                Authorization: "Bearer <your_token>",
            },
        }
    );

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