发送注入/创建已签名 PSBT
发送已签名 PSBT
最后发送用户已签名的 PSBT,返回结果成功,即注入/创建成功
POST
/brc20swap/v2/add_liquid_by_psbt
// 继承上一个接口的请求参数+多传一个psbt
export interface SendPoolPsbtBody extends PoolPsbtBody {
psbt: string;
}
BRC20 示例
{
"tick1": "bqbq",
"coin_type_1": "brc20",
"amount_1": "1000",
"tick_1_inscription_ids": [
"f34bf7166ce48a78b21f9b42746756b559bdab93f8e77509b505944b2efbfbe3i0"
],
"tick2": "BTC",
"coin_type_2": "btc",
"amount_2": "17999",
"tick_2_inscription_ids": [],
"fee_rate": "11",
"slipper": "12",
"payer_ord_addr": "tb1qge80xavle7c7k0tk7vceaavwcgpsr3jchl0w3e",
"payer_btc_addr": "tb1qge80xavle7c7k0tk7vceaavwcgpsr3jchl0w3e",
"payer_pub_key": "02d3ac7452920b1cc4653516dd4f4381a2df0a8c0aac6e3446e633a73ea63eee81:02d3ac7452920b1cc4653516dd4f4381a2df0a8c0aac6e3446e633a73ea63eee81",
"psbt": "70736274ff0100d10200000002e3fbfb2e4b9405b50975e7f893abbd59b5566774429b1fb2788ae46c16f74bf30000000000ffffffff276c73bb3076b266ae8ac4d369577beb7105c51a4271a301da984217ec62ad430200000000ffffffff0322020000000000002251205f28b0e8c26bf7f3fa368c238eec1ba1d1abf88a6166fab2803fad046067942d4f46000000000000220020ef2b3663bf5f5efc35f85330d7e3ac9469967515b1f5144d11af308658eb54c42a53000000000000160014464ef3759fcfb1eb3d76f3319ef58ec20301c658000000000001011f2202000000000000160014464ef3759fcfb1eb3d76f3319ef58ec20301c65801086b0247304402207f9f622d8082b5c210f13a7d82a813c04d0ad53372f346870f4117f45376849e0220737ffb1ec45bdfc362fff31ec5a69ae4cd89cbbfaa5118fece49ad2d3a4c31c3012102d3ac7452920b1cc4653516dd4f4381a2df0a8c0aac6e3446e633a73ea63eee810001011fd1a4000000000000160014464ef3759fcfb1eb3d76f3319ef58ec20301c65801086b0247304402200f206ac0bbfaf5cdf6a5fd5b1b4cc3dea6f825b9e7520bf36a2c0ec9876d48dd02202a988c5b68cad29797461447054e290d6a32f6e534a14a6c5085942a4d57f153012102d3ac7452920b1cc4653516dd4f4381a2df0a8c0aac6e3446e633a73ea63eee8100000000",
"check_sum": "6B7060399317F38C181304A282B0E0D0"
}
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://192.168.10.66:56651' \
-H 'Pragma: no-cache' \
-H 'Referer: http://192.168.10.66: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/121.0.0.0 Safari/537.36' \
-H 'sec-ch-ua: "Not A(Brand";v="99", "Google Chrome";v="121", "Chromium";v="121"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
--data-raw '{"tick1":"bqbq","coin_type_1":"brc20","amount_1":"1000","tick_1_inscription_ids":["f34bf7166ce48a78b21f9b42746756b559bdab93f8e77509b505944b2efbfbe3i0"],"tick2":"BTC","coin_type_2":"btc","amount_2":"17999","tick_2_inscription_ids":[],"fee_rate":"11","slipper":"12","payer_ord_addr":"tb1qge80xavle7c7k0tk7vceaavwcgpsr3jchl0w3e","payer_btc_addr":"tb1qge80xavle7c7k0tk7vceaavwcgpsr3jchl0w3e","payer_pub_key":"02d3ac7452920b1cc4653516dd4f4381a2df0a8c0aac6e3446e633a73ea63eee81:02d3ac7452920b1cc4653516dd4f4381a2df0a8c0aac6e3446e633a73ea63eee81","psbt":"70736274ff0100d10200000002e3fbfb2e4b9405b50975e7f893abbd59b5566774429b1fb2788ae46c16f74bf30000000000ffffffff276c73bb3076b266ae8ac4d369577beb7105c51a4271a301da984217ec62ad430200000000ffffffff0322020000000000002251205f28b0e8c26bf7f3fa368c238eec1ba1d1abf88a6166fab2803fad046067942d4f46000000000000220020ef2b3663bf5f5efc35f85330d7e3ac9469967515b1f5144d11af308658eb54c42a53000000000000160014464ef3759fcfb1eb3d76f3319ef58ec20301c658000000000001011f2202000000000000160014464ef3759fcfb1eb3d76f3319ef58ec20301c65801086b0247304402207f9f622d8082b5c210f13a7d82a813c04d0ad53372f346870f4117f45376849e0220737ffb1ec45bdfc362fff31ec5a69ae4cd89cbbfaa5118fece49ad2d3a4c31c3012102d3ac7452920b1cc4653516dd4f4381a2df0a8c0aac6e3446e633a73ea63eee810001011fd1a4000000000000160014464ef3759fcfb1eb3d76f3319ef58ec20301c65801086b0247304402200f206ac0bbfaf5cdf6a5fd5b1b4cc3dea6f825b9e7520bf36a2c0ec9876d48dd02202a988c5b68cad29797461447054e290d6a32f6e534a14a6c5085942a4d57f153012102d3ac7452920b1cc4653516dd4f4381a2df0a8c0aac6e3446e633a73ea63eee8100000000","check_sum":"6B7060399317F38C181304A282B0E0D0"}' \
--compressed
Last updated