Create PSBT
Create liquidity
Body
public_keystringRequired
Public keys, format: btc_address:ordinal_address
btc_addressstringRequired
BTC address, stores BTC
ord_addressstringRequired
Ordinal address, stores runes
tickstringRequired
Runes name
coin_typestringRequired
Token type, currently only supports runes
amountstringRequired
Amount
fee_rateintegerRequired
Fee rate
Responses
200Success
application/json
post
POST /brc20swap/single_liquid/create_order HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 369
{
"public_key": "02c1b5a4bb7da120d2656733efd232bbfb91eb4765905055d5d3ed9ed4350b9b2b:525250abcadd770aed32f7e39f583864a7fdab0a803fb206a9dd647513a082be",
"btc_address": "tb1qjetj3qgvz9nyna03hcutrmrja3def5s68tp9pe",
"ord_address": "tb1p425q0pyngj5hcge7pu9krhpcu50p5hrpy93ajqt97a3xvzy0lzpsg9v22z",
"tick": "XV•TEST•THIRD•TWO",
"coin_type": "runes",
"amount": "10000",
"fee_rate": 1
}
200Success
{
"code": 10180000,
"msg": "Wrong address (code:622656)",
"data": null,
"req_id": "1933341893319622656"
}
Last updated
Was this helpful?