预注入流动性
开发中
POST
https://test-api-proxy.ddpurse.com/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
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"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://test-api-proxy.ddpurse.com/brc20swap/v2/pre_add_liquid' \
--header 'Content-Type: application/json' \
--data-raw '{
"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成功
application/json
Body
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"
}
🟢200成功