Send Signed Liquidity PSBT
Sending Signed PSBT
Finally, send the signed PSBT. If the response indicates success, the liquidity has been added/created successfully.
POST
/brc20swap/v2/add_liquid_by_psbt
// Inherits the request parameters from the previous interface and adds an additional psbt field
export interface SendPoolPsbtBody extends PoolPsbtBody {
psbt: string;
}
ARC20 Example
{
"tick1": "3dbb",
"coin_type_1": "arc20",
"amount_1": "600",
"tick_1_inscription_ids": [],
"tick2": "BTC",
"coin_type_2": "btc",
"amount_2": "113328",
"tick_2_inscription_ids": [],
"fee_rate": "11",
"slipper": "12",
"payer_ord_addr": "tb1qlphav0389832xt8deme0hx2unvw3cjt7fsfuyx",
"payer_btc_addr": "tb1qlphav0389832xt8deme0hx2unvw3cjt7fsfuyx",
"payer_pub_key": "036d9bb5a5cbf1cfb46c6ec79832a53b4f8717751485abb141ba6d595393200ace:036d9bb5a5cbf1cfb46c6ec79832a53b4f8717751485abb141ba6d595393200ace",
"psbt": "70736274ff0100f00200000002d23ee48e3040ed7f4fe4c1a8ee4528dc6a055968d24027d6a571597bf85db4010100000000ffffffffdfa620ba1267ab1a6da6dba28a06d13d3a949fe9f62b99cc80d72f82ce0016a40100000000ffffffff045802000000000000220020002b66020e2e23682032e4515c8dcf248947ea7beb972e7b274b9089bcc6fffc4c02000000000000160014f86fd63e2729e2a32cedcef2fb995c9b1d1c497eb0ba0100000000002200202c22e1ce42a1c28860c9d6ae814396125d7dfcde487d8fb9ecdaf8a42f982ff312cf140000000000160014f86fd63e2729e2a32cedcef2fb995c9b1d1c497e000000000001011f6f96160000000000160014f86fd63e2729e2a32cedcef2fb995c9b1d1c497e01086b024730440220713a15e98651934bff8801059c5212d89169a166694f3b77ff0ea040d0098ca802204837f18b22d8cb0966fe2a3fd95e0eb0e40b8380652e602a7a9052592c7c9c3c0121036d9bb5a5cbf1cfb46c6ec79832a53b4f8717751485abb141ba6d595393200ace0001011fa404000000000000160014f86fd63e2729e2a32cedcef2fb995c9b1d1c497e01086c02483045022100bbba8a22484bb1d211cbe6ef1172a412a341a5c46012280c7e549ab401336d9e0220610da8fe227de3678ff912348a892e8b2c4bb2dfe13b9265054f1a5a09017c7b0121036d9bb5a5cbf1cfb46c6ec79832a53b4f8717751485abb141ba6d595393200ace0000000000",
"check_sum": "C34B6F39B7E8ED40D402BDF4DA2B316D"
}
curl 'https://test-api-proxy.ddpurse.com/brc20swap/v2/add_liquid_by_psbt' \
-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","tick_1_inscription_ids":[],"tick2":"BTC","coin_type_2":"btc","amount_2":"113328","tick_2_inscription_ids":[],"fee_rate":"11","slipper":"12","payer_ord_addr":"tb1qlphav0389832xt8deme0hx2unvw3cjt7fsfuyx","payer_btc_addr":"tb1qlphav0389832xt8deme0hx2unvw3cjt7fsfuyx","payer_pub_key":"036d9bb5a5cbf1cfb46c6ec79832a53b4f8717751485abb141ba6d595393200ace:036d9bb5a5cbf1cfb46c6ec79832a53b4f8717751485abb141ba6d595393200ace","psbt":"70736274ff0100f00200000002d23ee48e3040ed7f4fe4c1a8ee4528dc6a055968d24027d6a571597bf85db4010100000000ffffffffdfa620ba1267ab1a6da6dba28a06d13d3a949fe9f62b99cc80d72f82ce0016a40100000000ffffffff045802000000000000220020002b66020e2e23682032e4515c8dcf248947ea7beb972e7b274b9089bcc6fffc4c02000000000000160014f86fd63e2729e2a32cedcef2fb995c9b1d1c497eb0ba0100000000002200202c22e1ce42a1c28860c9d6ae814396125d7dfcde487d8fb9ecdaf8a42f982ff312cf140000000000160014f86fd63e2729e2a32cedcef2fb995c9b1d1c497e000000000001011f6f96160000000000160014f86fd63e2729e2a32cedcef2fb995c9b1d1c497e01086b024730440220713a15e98651934bff8801059c5212d89169a166694f3b77ff0ea040d0098ca802204837f18b22d8cb0966fe2a3fd95e0eb0e40b8380652e602a7a9052592c7c9c3c0121036d9bb5a5cbf1cfb46c6ec79832a53b4f8717751485abb141ba6d595393200ace0001011fa404000000000000160014f86fd63e2729e2a32cedcef2fb995c9b1d1c497e01086c02483045022100bbba8a22484bb1d211cbe6ef1172a412a341a5c46012280c7e549ab401336d9e0220610da8fe227de3678ff912348a892e8b2c4bb2dfe13b9265054f1a5a09017c7b0121036d9bb5a5cbf1cfb46c6ec79832a53b4f8717751485abb141ba6d595393200ace0000000000","check_sum":"C34B6F39B7E8ED40D402BDF4DA2B316D"}'
Last updated