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;
}

BRC20 Example

{
    "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"
}

Last updated