Create Approval Rule
Last updated
Last updated
POST
https://api.sfox.com/v1
/approval-rules
Add a new crypto address to your account's whitelisted withdrawal addresses.
If you have an approval rule for altering SAFE settings, the new rule may not be immediately added to your account as it may require approval from other users in your account.
Parameter | Type | Description |
---|---|---|
rule_type
required
string
The type of approval rule to create. Possible values:
WITHDRAW
: Approval rule for withdrawals.
ADD_ALTER_COLL
: Adding/editing users in your account.
ALTER_SAFE
: Adding/editing approval rules in your account.
required_approvals
required
int
Number of approvals needed for the action to be approved.
threshold
number
The withdrawal amount (USD) required for the action to require approvals. Required if rule_type
= WITHDRAW