获取注入/创建待签名 PSBT
获取待签名 PSBT(RUNES)
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": "RUNEONERUNEONE",
"coin_type_1": "runes",
"amount_1": "500",
"tick2": "BTC",
"coin_type_2": "btc",
"amount_2": "10000",
"fee_rate": "57",
"slipper": "12",
"payer_ord_addr": "tb1qge80xavle7c7k0tk7vceaavwcgpsr3jchl0w3e",
"payer_btc_addr": "tb1qge80xavle7c7k0tk7vceaavwcgpsr3jchl0w3e",
"payer_pub_key": "02d3ac7452920b1cc4653516dd4f4381a2df0a8c0aac6e3446e633a73ea63eee81:02d3ac7452920b1cc4653516dd4f4381a2df0a8c0aac6e3446e633a73ea63eee81"
}
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/124.0.0.0 Safari/537.36' \
-H 'sec-ch-ua: "Chromium";v="124", "Google Chrome";v="124", "Not-A.Brand";v="99"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
--data-raw '{"tick1":"RUNEONERUNEONE","coin_type_1":"runes","amount_1":"500","tick2":"BTC","coin_type_2":"btc","amount_2":"10000","fee_rate":"57","slipper":"12","payer_ord_addr":"tb1qge80xavle7c7k0tk7vceaavwcgpsr3jchl0w3e","payer_btc_addr":"tb1qge80xavle7c7k0tk7vceaavwcgpsr3jchl0w3e","payer_pub_key":"02d3ac7452920b1cc4653516dd4f4381a2df0a8c0aac6e3446e633a73ea63eee81:02d3ac7452920b1cc4653516dd4f4381a2df0a8c0aac6e3446e633a73ea63eee81"}'
1、payer_ord_addr
和 payer_btc_addr
传同一个地址即可
Last updated