Send Signed Swap PSBT
Sending a Signed Swap PSBT
After sending the signed PSBT, a successful response indicates that the swap was successful.
export interface SendSwapPsbtBody {
order_id: string;
psbt: string;
}
Runes Example
{
"order_id": "swap_972418117693079552",
"psbt": "70736274ff0100fd04010200000002ea6b10c24cc382bb620ed6f22778345747aac033aa96cf22797782fe307d64150100000000ffffffff10c229431e96a7553f38e3f7fa1588ce3c7636bba016c32a340bc9a46391363c0000000000ffffffff05220200000000000022512081b9a16af526f524111c0cf880ee6e4cb1b631faa7db079e722c9549cf49e4912202000000000000160014464ef3759fcfb1eb3d76f3319ef58ec20301c65800000000000000000b6a5d0800eae29d01110401a08601000000000022512006161a3f67a1c67b1a39550c0e6c156852f22e9c9bfc67aa951010a27cdc324a61cc070000000000160014464ef3759fcfb1eb3d76f3319ef58ec20301c658000000000001011f0c99090000000000160014464ef3759fcfb1eb3d76f3319ef58ec20301c65801086c024830450221008fcd373e48fa3189ef837552adea6adb69f320331327e4e67f73d4fd0460c6490220629e132bfcdc1deacf2eb7ccc9d9992799fcd967060a248027ded1878bf11f27012102d3ac7452920b1cc4653516dd4f4381a2df0a8c0aac6e3446e633a73ea63eee810001012b220200000000000022512081b9a16af526f524111c0cf880ee6e4cb1b631faa7db079e722c9549cf49e49101030401000000000000000000"
}
curl 'https://test-api-proxy.ddpurse.com/brc20swap/send_swap_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 '{"order_id":"swap_972418117693079552","psbt":"70736274ff0100fd04010200000002ea6b10c24cc382bb620ed6f22778345747aac033aa96cf22797782fe307d64150100000000ffffffff10c229431e96a7553f38e3f7fa1588ce3c7636bba016c32a340bc9a46391363c0000000000ffffffff05220200000000000022512081b9a16af526f524111c0cf880ee6e4cb1b631faa7db079e722c9549cf49e4912202000000000000160014464ef3759fcfb1eb3d76f3319ef58ec20301c65800000000000000000b6a5d0800eae29d01110401a08601000000000022512006161a3f67a1c67b1a39550c0e6c156852f22e9c9bfc67aa951010a27cdc324a61cc070000000000160014464ef3759fcfb1eb3d76f3319ef58ec20301c658000000000001011f0c99090000000000160014464ef3759fcfb1eb3d76f3319ef58ec20301c65801086c024830450221008fcd373e48fa3189ef837552adea6adb69f320331327e4e67f73d4fd0460c6490220629e132bfcdc1deacf2eb7ccc9d9992799fcd967060a248027ded1878bf11f27012102d3ac7452920b1cc4653516dd4f4381a2df0a8c0aac6e3446e633a73ea63eee810001012b220200000000000022512081b9a16af526f524111c0cf880ee6e4cb1b631faa7db079e722c9549cf49e49101030401000000000000000000"}'
Last updated