@silencelaboratories/walletprovider-sdk
    Preparing search index...

    Class Rule

    A rule contains conditions that must be satisfied

    Index

    Constructors

    • Creates a new Rule instance.

      Parameters

      • description: {
            action?: Action;
            chain_type: ChainType;
            conditions: ConditionOrGroup[];
            description: string;
            issuer?: Issuer[];
            logic?: Logic;
        }

        A human-readable description of what the rule does.

      Returns Rule

      Will throw an error if no conditions are provided or chain_type is missing.

    Properties

    action: Action

    Action to take if rule matches

    chain_type: ChainType

    Chain type this rule applies to

    conditions: ConditionOrGroup[]

    List of conditions or condition groups

    description: string

    Human-readable description (max 512 characters)

    issuer: Issuer[]

    List of issuers who issue the request that will be evaluated by the policy engine

    logic?: Logic

    Logic to apply to conditions (default: AND)