Skip to main content
PATCH
Master Wallet Update Rule

授权

x-api-key
string
header
必填

路径参数

walletId
string
必填
示例:

"{{walletId}}"

id
string
必填
示例:

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

请求体

application/json
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"

destination
object
isActive
boolean
示例:

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 the merged rule has isReward true.

可用选项:
aave
示例:

"aave"

rewardType
enum<string>

Only defi is currently offered.

可用选项:
defi
示例:

"defi"

useTransactionAmount
boolean

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

示例:

false

deductionPercentage
string

Percentage withheld from the settled amount before execution.

示例:

"0"

inheritance
object

Controls which child addresses this master-wallet rule cascades to. Send the complete object to change it.

name
string
示例:

"Swap from USDT to OP USDC"

order
enum<string>
可用选项:
FASTEST,
CHEAPEST,
RECOMMENDED,
NO_SLIPPAGE
示例:

"FASTEST"

slippageTolerance
string
示例:

"5"

source
object

响应

200 - application/json

200

data
object
message
string
示例:

"Auto settlement rule updated successfully"

statusCode
number
示例:

200