• Creates an initialization staker operation. This operation initializes a staker for a staking pool.

    Parameters

    • honeycomb: Honeycomb

      The Honeycomb instance to use for creating the operation.

    • args: CreateInitStakerOperationArgs

      The arguments required to create the initialization staker operation.

    Returns Promise<{
        operation: Operation;
    }>

    An object containing the created operation.

    Example

    // Assuming you have initialized the `honeycomb` instance and imported necessary types

    const stakingPool = new NectarStaking(honeycomb, "your_staking_pool_address");

    const createInitArgs: CreateInitStakerOperationArgs = {
    stakingPool,
    };

    const operationResult = await createInitStakerOperation(honeycomb, createInitArgs);
    console.log("Created operation:", operationResult.operation);

Generated using TypeDoc