发送注入/创建已签名 PSBT

发送已签名 PSBT

最后发送用户已签名的 PSBT,返回结果成功,即注入/创建成功

POST/brc20swap/v2/add_liquid_by_psbt

// 继承上一个接口的请求参数+多传一个psbt
export interface SendPoolPsbtBody extends PoolPsbtBody {
  psbt: string;
}

RUNES 示例 </

{ "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", "psbt": "70736274ff0100fd06010200000002e2a0a00695d8d535056355c22216bb4f7417840e54a30b43756be5d03e6efb430400000000ffffffff6c7e19e4e402626e417b53b74ec8072eabdc6a341c5962f16dc457934dd0e5690000000000ffffffff052202000000000000160014464ef3759fcfb1eb3d76f3319ef58ec20301c6582202000000000000225120d387bbe3477b8dff139067daec5a392e3dd5392a6931769a77faab5c5eb0943600000000000000000d6a5d0a00e5e49d01cc01f40301102700000000000022512006161a3f67a1c67b1a39550c0e6c156852f22e9c9bfc67aa951010a27cdc324a9a5c070000000000160014464ef3759fcfb1eb3d76f3319ef58ec20301c658000000000001011f61cc070000000000160014464ef3759fcfb1eb3d76f3319ef58ec20301c65801086c02483045022100aa71efa3d6f0cbddc76e86db758f35b6d8dbf8e1f4ea4ad0bdcbde86806f660502206766ef4bbeafe672da6499d80b715c570dec8e1c7ec931f15899a911e850963e012102d3ac7452920b1cc4653516dd4f4381a2df0a8c0aac6e3446e633a73ea63eee810001011f2202000000000000160014464ef3759fcfb1eb3d76f3319ef58ec20301c65801086c02483045022100ef7f9f1eb4cd36e6608507193dbd77c002717f8b431943fe308fe5d289628e2c02205cd88555b2fac6c2555ce62ba7b9a8c722cb7a8f113f67c0eb40bf399c622be7012102d3ac7452920b1cc4653516dd4f4381a2df0a8c0aac6e3446e633a73ea63eee81000000000000", "check_sum": "2C091CA6B604BB5D7C065B141BB9F881"}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/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","psbt":"70736274ff0100fd06010200000002e2a0a00695d8d535056355c22216bb4f7417840e54a30b43756be5d03e6efb430400000000ffffffff6c7e19e4e402626e417b53b74ec8072eabdc6a341c5962f16dc457934dd0e5690000000000ffffffff052202000000000000160014464ef3759fcfb1eb3d76f3319ef58ec20301c6582202000000000000225120d387bbe3477b8dff139067daec5a392e3dd5392a6931769a77faab5c5eb0943600000000000000000d6a5d0a00e5e49d01cc01f40301102700000000000022512006161a3f67a1c67b1a39550c0e6c156852f22e9c9bfc67aa951010a27cdc324a9a5c070000000000160014464ef3759fcfb1eb3d76f3319ef58ec20301c658000000000001011f61cc070000000000160014464ef3759fcfb1eb3d76f3319ef58ec20301c65801086c02483045022100aa71efa3d6f0cbddc76e86db758f35b6d8dbf8e1f4ea4ad0bdcbde86806f660502206766ef4bbeafe672da6499d80b715c570dec8e1c7ec931f15899a911e850963e012102d3ac7452920b1cc4653516dd4f4381a2df0a8c0aac6e3446e633a73ea63eee810001011f2202000000000000160014464ef3759fcfb1eb3d76f3319ef58ec20301c65801086c02483045022100ef7f9f1eb4cd36e6608507193dbd77c002717f8b431943fe308fe5d289628e2c02205cd88555b2fac6c2555ce62ba7b9a8c722cb7a8f113f67c0eb40bf399c622be7012102d3ac7452920b1cc4653516dd4f4381a2df0a8c0aac6e3446e633a73ea63eee81000000000000","check_sum":"2C091CA6B604BB5D7C065B141BB9F881"}'

Last updated