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

    Type Alias CreatePolicyRequest

    Request payload for creating a new policy on an account.

    type CreatePolicyRequest = {
        accountId: string;
        chain: string;
        organisationId: string;
        params: PolicyParams;
        type: PolicyType;
    }
    Index

    Properties

    accountId: string

    The ID of the account to attach the policy to.

    chain: string

    The chain ID the policy applies to (e.g. '11155111' for Sepolia), or '*' to apply it on every chain.

    '11155111'
    
    organisationId: string

    The ID of the organisation to attach the account policy to.

    params: PolicyParams

    The parameters for the policy. See PolicyParams for which member corresponds to which type.

    The type of policy to create — see PolicyType. Note nominated_approvers policies cannot be created (not yet implemented).

    'allowed_recipients'