Skip to main content
PATCH
Master Wallet Update Rule

Authorizations

x-api-key
string
header
required

Path Parameters

walletId
string
required
Example:

"{{walletId}}"

id
string
required
Example:

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

Body

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.

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

"swap"

destination
object
isActive
boolean
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 the merged rule has isReward 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.

Example:

false

deductionPercentage
string

Percentage withheld from the settled amount before execution.

Example:

"0"

inheritance
object

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

name
string
Example:

"Swap from USDT to OP USDC"

order
enum<string>
Available options:
FASTEST,
CHEAPEST,
RECOMMENDED,
NO_SLIPPAGE
Example:

"FASTEST"

slippageTolerance
string
Example:

"5"

source
object

Response

200 - application/json

200

data
object
message
string
Example:

"Auto settlement rule updated successfully"

statusCode
number
Example:

200