The wallet address to query for stake accounts.
The Solana RPC endpoint URL.
const run = async () => {
const endpoint = 'https://api.mainnet-beta.solana.com';
const walletAddress = '<your-authority-keypair>';
const result = await getStakeAccounts(walletAddress, endpoint);
console.log(inspect(result, { depth: null, colors: true }));
};
run();
Generated using TypeDoc
Fetches the list of stake accounts associated with a given wallet address.