Swig TS — API References
    Preparing search index...

    Type Alias SpendControl

    type SpendControl = {
        amount: bigint | null;
        hasControl: boolean;
        lastReset?: bigint;
        recurringAmount?: bigint;
        window?: bigint;
    }
    Index

    Properties

    amount: bigint | null

    amount the action is permitted to spend at the given moment, null if spend is uncapped

    hasControl: boolean

    true if the action is allowed to spend at all

    lastReset?: bigint

    The time in slot where the last topup happened. Only valid for recurring spends

    recurringAmount?: bigint

    The max spend after a topup

    window?: bigint

    time in slots between between spend topups. This is only available for Recurring Spends