Skip to main content
PATCH
Child Address Update Rule

Autorisations

x-api-key
string
header
requis

Paramètres de chemin

walletId
string
requis
Exemple:

"{{walletId}}"

addressId
string
requis
Exemple:

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

id
string
requis
Exemple:

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

Corps

application/json
destination
object
requis
source
object
requis
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.

Options disponibles:
withdraw,
swap,
gateway,
earn
Exemple:

"swap"

isActive
boolean

Resets to true when omitted.

Exemple:

true

isGateway
boolean

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

Exemple:

false

isReward
boolean

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

Exemple:

false

rewardProvider
enum<string>

Required whenever isReward is true.

Options disponibles:
aave
Exemple:

"aave"

rewardType
enum<string>

Only defi is currently offered.

Options disponibles:
defi
Exemple:

"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.

Exemple:

false

deductionPercentage
string

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

Exemple:

"0"

name
string
Exemple:

"Swap from USDT to OP USDC"

order
enum<string>

Resets to RECOMMENDED when omitted.

Options disponibles:
FASTEST,
CHEAPEST,
RECOMMENDED,
NO_SLIPPAGE
Exemple:

"FASTEST"

slippageTolerance
string

Resets to "0" when omitted.

Exemple:

"5"

Réponse

200 - application/json

200

data
object
message
string
Exemple:

"Auto settlement rule updated successfully"

statusCode
number
Exemple:

200