Skip to main content
PATCH
Child Address Update Rule

Autorizações

x-api-key
string
header
obrigatório

Parâmetros de caminho

walletId
string
obrigatório
Exemplo:

"{{walletId}}"

addressId
string
obrigatório
Exemplo:

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

id
string
obrigatório
Exemplo:

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

Corpo

application/json
destination
object
obrigatório
source
object
obrigatório
productKey
string

Pins a specific earn product for the rule. Only needed when a provider offers more than one product for a source asset; the updated rule must then have exactly one source asset.

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.

Opções disponíveis:
withdraw,
swap,
gateway,
earn
Exemplo:

"swap"

isActive
boolean

Resets to true when omitted.

Exemplo:

true

isGateway
boolean

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

Exemplo:

false

isReward
boolean

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

Exemplo:

false

rewardProvider
enum<string>

Required whenever isReward is true.

Opções disponíveis:
aave,
compound
Exemplo:

"aave"

rewardType
enum<string>

Only defi is currently offered.

Opções disponíveis:
defi
Exemplo:

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

Exemplo:

false

deductionPercentage
string

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

Exemplo:

"0"

name
string
Exemplo:

"Swap from USDT to OP USDC"

order
enum<string>

Resets to RECOMMENDED when omitted.

Opções disponíveis:
FASTEST,
CHEAPEST,
RECOMMENDED,
NO_SLIPPAGE
Exemplo:

"FASTEST"

slippageTolerance
string

Resets to "0" when omitted.

Exemplo:

"5"

Resposta

200 - application/json

200

data
object
message
string
Exemplo:

"Auto settlement rule updated successfully"

statusCode
number
Exemplo:

200