post https://rest-api.hellomoon.io/v0/defi/lending
NOTE: This endpoint is only callable by API keys in the following tiers:
- Business
- Developer
- Enterprise
- PremiumSharedRpc
- StarterSharedRpc
- UltimateSharedRpc
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);
}