post https://rest-api.hellomoon.io/v0/staking/transfers
Data on SOL being transferred to and from stake accounts.
Funding and withdrawing SOL from stake accounts occours through the stake program Stake11111111111111111111111111111111111111 which we consider to be distinct from spl-token transfers or system transfers.
Examples
Get transfers from a stake account
const axios = require("axios");
const url = "https://rest-api.hellomoon.io/v0/staking/transfers";
async function getTransfers() {
const { data } = await axios.post(
url,
{
"sourceStakeAccount": "728vS47vUmD6Z2wBqew38fy4b85C5KB77tLVRMnQLpTa"
},
{
headers: {
Accept: "application/json",
"Content-Type": "application/json",
Authorization: "Bearer <your_token>",
},
}
);
console.log(data);
}