获取注入/创建待签名 PSBT
获取待签名 PSBT(ARC20)
获取待签名 PSBT。
POST
/ brc20swap/v2/create_add_liquid_psbt2
export interface PoolPsbtBody {
tick1: string;
tick2: string;
coin_type_1: string;
coin_type_2: string;
amount_1: string;
amount_2: string;
slipper: string;
payer_ord_addr: string;
fee_rate: string;
payer_btc_addr: string;
payer_pub_key: string;
}
{
"tick1": "3dbb",
"coin_type_1": "arc20",
"amount_1": "600",
"tick2": "BTC",
"coin_type_2": "btc",
"amount_2": "113328",
"fee_rate": "11",
"slipper": "12",
"payer_ord_addr": "tb1qlphav0389832xt8deme0hx2unvw3cjt7fsfuyx",
"payer_btc_addr": "tb1qlphav0389832xt8deme0hx2unvw3cjt7fsfuyx",
"payer_pub_key": "036d9bb5a5cbf1cfb46c6ec79832a53b4f8717751485abb141ba6d595393200ace:036d9bb5a5cbf1cfb46c6ec79832a53b4f8717751485abb141ba6d595393200ace"
}
curl 'https://test-api-proxy.ddpurse.com/brc20swap/v2/create_add_liquid_psbt2' \
-H 'Accept: application/json, text/plain, */*' \
-H 'Accept-Language: en' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Content-Type: application/json' \
-H 'Origin: http://localhost:56651' \
-H 'Pragma: no-cache' \
-H 'Referer: http://localhost:56651/' \
-H 'Sec-Fetch-Dest: empty' \
-H 'Sec-Fetch-Mode: cors' \
-H 'Sec-Fetch-Site: cross-site' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36' \
-H 'sec-ch-ua: "Chromium";v="122", "Not(A:Brand";v="24", "Google Chrome";v="122"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
--data-raw '{"tick1":"3dbb","coin_type_1":"arc20","amount_1":"600","tick2":"BTC","coin_type_2":"btc","amount_2":"113328","fee_rate":"11","slipper":"12","payer_ord_addr":"tb1qlphav0389832xt8deme0hx2unvw3cjt7fsfuyx","payer_btc_addr":"tb1qlphav0389832xt8deme0hx2unvw3cjt7fsfuyx","payer_pub_key":"036d9bb5a5cbf1cfb46c6ec79832a53b4f8717751485abb141ba6d595393200ace:036d9bb5a5cbf1cfb46c6ec79832a53b4f8717751485abb141ba6d595393200ace"}'
1、payer_ord_addr
和 payer_btc_addr
传同一个地址即可
2、注入最低数量门槛:btc= 0.003,arc20≥546,且为正整数
3、注入后,若该用户钱包内该代币剩余数量必须为等于 0 或者大于 546
Last updated