Send Signed Liquidity PSBT

Sending Signed PSBT

Finally, send the signed PSBT. If the response indicates success, the liquidity has been added/created successfully.

POST/brc20swap/v2/add_liquid_by_psbt

// Inherits the request parameters from the previous interface and adds an additional psbt field
export interface SendPoolPsbtBody extends PoolPsbtBody {
  psbt: string;
}

ARC20 Example

{
    "tick1": "3dbb",
    "coin_type_1": "arc20",
    "amount_1": "600",
    "tick_1_inscription_ids": [],
    "tick2": "BTC",
    "coin_type_2": "btc",
    "amount_2": "113328",
    "tick_2_inscription_ids": [],
    "fee_rate": "11",
    "slipper": "12",
    "payer_ord_addr": "tb1qlphav0389832xt8deme0hx2unvw3cjt7fsfuyx",
    "payer_btc_addr": "tb1qlphav0389832xt8deme0hx2unvw3cjt7fsfuyx",
    "payer_pub_key": "036d9bb5a5cbf1cfb46c6ec79832a53b4f8717751485abb141ba6d595393200ace:036d9bb5a5cbf1cfb46c6ec79832a53b4f8717751485abb141ba6d595393200ace",
    "psbt": "70736274ff0100f00200000002d23ee48e3040ed7f4fe4c1a8ee4528dc6a055968d24027d6a571597bf85db4010100000000ffffffffdfa620ba1267ab1a6da6dba28a06d13d3a949fe9f62b99cc80d72f82ce0016a40100000000ffffffff045802000000000000220020002b66020e2e23682032e4515c8dcf248947ea7beb972e7b274b9089bcc6fffc4c02000000000000160014f86fd63e2729e2a32cedcef2fb995c9b1d1c497eb0ba0100000000002200202c22e1ce42a1c28860c9d6ae814396125d7dfcde487d8fb9ecdaf8a42f982ff312cf140000000000160014f86fd63e2729e2a32cedcef2fb995c9b1d1c497e000000000001011f6f96160000000000160014f86fd63e2729e2a32cedcef2fb995c9b1d1c497e01086b024730440220713a15e98651934bff8801059c5212d89169a166694f3b77ff0ea040d0098ca802204837f18b22d8cb0966fe2a3fd95e0eb0e40b8380652e602a7a9052592c7c9c3c0121036d9bb5a5cbf1cfb46c6ec79832a53b4f8717751485abb141ba6d595393200ace0001011fa404000000000000160014f86fd63e2729e2a32cedcef2fb995c9b1d1c497e01086c02483045022100bbba8a22484bb1d211cbe6ef1172a412a341a5c46012280c7e549ab401336d9e0220610da8fe227de3678ff912348a892e8b2c4bb2dfe13b9265054f1a5a09017c7b0121036d9bb5a5cbf1cfb46c6ec79832a53b4f8717751485abb141ba6d595393200ace0000000000",
    "check_sum": "C34B6F39B7E8ED40D402BDF4DA2B316D"
}

Last updated