• Create an operation to add a new multiplier to the staking pool.

    Parameters

    • honeycomb: Honeycomb

      The Honeycomb instance.

    • args: CreateAddMultiplierCtxArgs

      The context arguments for creating the AddMultiplier operation.

    Returns Promise<{
        operation: Operation;
    }>

    An object containing the AddMultiplier operation.

    Example

    // Usage example:
    const honeycomb = new Honeycomb(connection, wallet);
    const stakingPool = new web3.PublicKey("...");
    const project = new web3.PublicKey("...");
    const args: AddMultiplierArgs = {
    type: "Custom Multiplier",
    multiplier: 2,
    };
    const { operation } = await createAddMultiplierOperation(honeycomb, {
    args,
    project,
    stakingPool,
    });
    // Send the transaction
    const txSignature = await honeycomb.sendTransaction(operation);

Generated using TypeDoc