Skip to main content
POST
Child Address Create Rule

授权

x-api-key
string
header
必填

路径参数

walletId
string
必填
示例:

"{{walletId}}"

addressId
string
必填
示例:

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

请求体

application/json
type
enum<string>

Settlement rule type. Recommended on every create; rules saved without it keep the legacy inferred behavior.

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

"swap"

destination
object
isActive
boolean
示例:

true

isGateway
boolean
示例:

true

name
string
示例:

"Swap from USDC to Gateway"

order
string
示例:

"FASTEST"

slippageTolerance
string
示例:

"5"

source
object

响应

200 - application/json

Regular 200 / Gateway 200

data
object
message
string
示例:

"Auto settlement rule created successfully"

statusCode
number
示例:

200