@kagamidigital/salt-sdk-mirror
    Preparing search index...

    Type Alias PolicyType

    PolicyType:
        | "allowed_recipients"
        | "denied_recipients"
        | "transaction_limit_token_denominated"
        | "nominated_approvers"
        | "denied_proposers"
        | "contract_param_restriction"

    The kind of constraint a Policy enforces. The type determines which member of PolicyParams the policy carries.

    Type Declaration

    • "allowed_recipients"

      Only the listed recipients may receive funds from the account; a transaction to any other address is a breach.

    • "denied_recipients"

      The listed recipients may not receive funds from the account. Evaluated independently of any allowed_recipients policy, so an address on both lists is denied.

    • "transaction_limit_token_denominated"

      Caps the amount a single transaction may transfer, per token (LimitEntry). The cap is per transaction, not cumulative.

    • "nominated_approvers"

      A nominated organisation collaborator (ApproverEntry) must approve each transaction before signing proceeds.

      Not yet implemented: the policy type exists on the API but approval is not enforced, and Salt#createAccountPolicy refuses to create one. Existing policies of this type can still be fetched, updated and deleted.

    • "denied_proposers"

      The listed addresses may not propose transactions from the account. For legacy reasons its addresses live under the recipients key of PolicyParams, but they are matched against the transaction's proposer, not its recipient.

    • "contract_param_restriction"

      Restricts the argument values of contract calls (ContractParamRestriction).