预注入流动性
开发中POST
/brc20swap/v2/pre_add_liquid请求参数
Body 参数application/json
tick1
string
币名
tick2
string
必需
amount_1
string
注入数量
amount_2
string
必需
tick_1_inscription_ids
array[string]
铭文id
brc20充值时使用
tick_2_inscription_ids
array[string]
必需
payer_ord_addr
string
地址
payer_btc_addr
string
必需
payer_pub_key
string
必需
fee_rate
string
费率
slipper
string
滑点
示例
{
"tick1": "sint amet aliquip reprehenderit",
"tick2": "sint et",
"coin_type_1": "nostrud",
"coin_type_2": "nisi",
"amount_1": "86",
"amount_2": "44",
"tick_1_inscription_ids": [
"32",
"44",
"21",
"11",
"55"
],
"tick_2_inscription_ids": [
"17",
"55",
"23",
"74",
"41"
],
"payer_ord_addr": "dolor in id",
"fee_rate": "cillum aute",
"payer_btc_addr": "irure sit culpa ea sed",
"payer_pub_key": "minim"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
msg
string
必需
data
object
必需
tx_size
integer
tx大小
ins_contain_sats
integer
输入铭文satoshi总和
vins
array[string]
必需
usr_cnt
integer
必需
net_fee
integer
网络费
check_sum
string
校验值
req_id
string
必需
示例
{
"code": 0,
"msg": "string",
"data": {
"tx_size": 0,
"ins_contain_sats": 0,
"vins": [
"string"
],
"usr_cnt": 0,
"net_fee": 0,
"check_sum": "string"
},
"req_id": "string"
}
最后修改时间: 8 个月前