🛠️ToggleSub

Description

Action ID: 0xd6499530

Sets the state of the sub to active or deactivated

SDK Action

const toggleSubAction = new dfs.actions.basic.ToggleSubAction(
    subId,
    active,
);

Contract

This is a DFS STANDARD_ACTION.

User can only disable/enable his own subscriptions

Input:

    
    /// @param subId Id of the subscription
    /// @param active True to enable, False to disable
    struct Params {
        uint256 subId;
        bool active;
    }

Return value:

Events:

Last updated