注入流动性
开发中POST
/brc20swap/v2/add_liquid_by_psbt请求参数
Body 参数application/json
psbt
string
psbt base64
tick1
string
必需
tick2
string
必需
amount_1
string
必需
amount_2
string
必需
slipper
string
必需
tick_1_inscription_ids
array[string]
必需
tick_2_inscription_ids
array[string]
必需
payer_ord_addr
string
必需
fee_rate
string
必需
payer_btc_addr
string
必需
payer_pub_key
string
必需
check_sum
string
必需
chl
string
必需
params
object
必需
liquid_account_percent
number
必需
liquid_account_sell_percent
number
必需
示例
{
"psbt": "string",
"tick1": "string",
"tick2": "string",
"amount_1": "string",
"amount_2": "string",
"slipper": "string",
"tick_1_inscription_ids": [
"string"
],
"tick_2_inscription_ids": [
"string"
],
"payer_ord_addr": "string",
"fee_rate": "string",
"payer_btc_addr": "string",
"payer_pub_key": "string",
"check_sum": "string",
"chl": "string",
"params": {
"liquid_account_percent": 0,
"liquid_account_sell_percent": 0
}
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
msg
string
必需
data
object | null
必需
order_id
string | null
订单号
没啥用
示例
{
"code": 0,
"msg": "string",
"data": {
"order_id": "string"
}
}
最后修改时间: 8 个月前