Skip to main content
PATCH
Child Address Update Rule

授权

x-api-key
string
header
必填

路径参数

walletId
string
必填
示例:

"{{walletId}}"

addressId
string
必填
示例:

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

id
string
必填
示例:

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

请求体

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

可用选项:
withdraw,
swap,
gateway,
earn
示例:

"swap"

isActive
boolean

Resets to true when omitted.

示例:

true

isGateway
boolean

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

示例:

false

isReward
boolean

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

示例:

false

rewardProvider
enum<string>

Required whenever isReward is true.

可用选项:
fija,
aave
示例:

"aave"

rewardType
enum<string>

Must be regulated for fija and defi for aave.

可用选项:
regulated,
defi
示例:

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

示例:

false

deductionPercentage
string

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

示例:

"0"

name
string
示例:

"Swap from USDT to OP USDC"

order
enum<string>

Resets to RECOMMENDED when omitted.

可用选项:
FASTEST,
CHEAPEST,
RECOMMENDED,
NO_SLIPPAGE
示例:

"FASTEST"

slippageTolerance
string

Resets to "0" when omitted.

示例:

"5"

响应

200 - application/json

200

data
object
message
string
示例:

"Auto settlement rule updated successfully"

statusCode
number
示例:

200