Skip to main content
PATCH
Child Address Update Rule

Authorizations

x-api-key
string
header
required

Path Parameters

walletId
string
required
Example:

"{{walletId}}"

addressId
string
required
Example:

"534e0480-f444-40c0-bc2e-2ef17bf7999e"

id
string
required
Example:

"55869cbe-fa3a-44d2-a7e3-d65c08355e4d"

Body

application/json
destination
object
required
source
object
required
type
enum<string>

Settlement rule type. Sending it on an update migrates a legacy rule onto the explicit type system; omit it to keep the rule's current behavior.

Available options:
withdraw,
swap,
gateway,
earn
Example:

"swap"

isActive
boolean

Resets to true when omitted.

Example:

true

isGateway
boolean

Must be true when the rule's type is gateway.

Example:

false

isReward
boolean

Must be true when the rule's type is earn. Mainnet only, and cannot be combined with isGateway.

Example:

false

rewardProvider
enum<string>

Required whenever isReward is true.

Available options:
fija,
aave
Example:

"aave"

rewardType
enum<string>

Must be regulated for fija and defi for aave.

Available options:
regulated,
defi
Example:

"defi"

useTransactionAmount
boolean

false settles the address's current balance of the source asset; true settles only the triggering deposit amount. Resets to false when omitted.

Example:

false

deductionPercentage
string

Percentage withheld from the settled amount before execution. Resets to "0" when omitted.

Example:

"0"

name
string
Example:

"Swap from USDT to OP USDC"

order
enum<string>

Resets to RECOMMENDED when omitted.

Available options:
FASTEST,
CHEAPEST,
RECOMMENDED,
NO_SLIPPAGE
Example:

"FASTEST"

slippageTolerance
string

Resets to "0" when omitted.

Example:

"5"

Response

200 - application/json

200

data
object
message
string
Example:

"Auto settlement rule updated successfully"

statusCode
number
Example:

200