CreateSub

Description

Action to create a new subscription

Notes

Gives user's wallet permission if needed and registers a new sub

Action ID

0xf41e543f

SDK Action

const createSubAction = new dfs.actions.basic.CreateSubAction(
    sub
);

Action Type

STANDARD_ACTION

Input Parameters

    /// @param _sub Subscription struct of the user (is not stored on chain, only the hash)
    struct Params {
        StrategyModel.StrategySub sub;
    }

Return Value

return (bytes32(subId));

Events and Logs

Last updated

Was this helpful?