• Fetches a staker from the staking pool based on the provided walletAddress. If no walletAddress is provided, it uses the identity().address from the Honeycomb instance.

    Parameters

    • honeycomb: Honeycomb

      The Honeycomb instance used for fetching staker data.

    • args: FetchStakerArgs

      Optional arguments for fetching the staker.

    Returns Promise<Staker>

    A promise that resolves to the Staker instance representing the staker data.

    Example

    const honeycomb = new Honeycomb(...);
    const staker = await fetchStaker(honeycomb, {
    walletAddress: 'YOUR_WALLET_ADDRESS',
    programId: 'YOUR_PROGRAM_ID',
    });

Generated using TypeDoc