The Honeycomb instance used for fetching staker data.
Optional arguments for fetching the staker.
A promise that resolves to the Staker instance representing the staker data.
const honeycomb = new Honeycomb(...);
const staker = await fetchStaker(honeycomb, {
walletAddress: 'YOUR_WALLET_ADDRESS',
programId: 'YOUR_PROGRAM_ID',
});
Generated using TypeDoc
Fetches a staker from the staking pool based on the provided
walletAddress
. If nowalletAddress
is provided, it uses theidentity().address
from the Honeycomb instance.