Get Unsigned Liquidity PSBT

Obtaining an Unsigned PSBT for Adding Liquidity (BRC20)

Upon successful pre-add/create request, obtain the unsigned PSBT. Some of the request parameters will be from the pre-add/create request's return result.

POST /brc20swap/v2/create_add_liquid_psbt

export interface PoolPsbtBody {
  tick1: string;
  tick2: string;
  coin_type_1: string;
  coin_type_2: string;
  amount_1: string;
  amount_2: string;
  slipper: string;
  tick_1_inscription_ids: string[];
  tick_2_inscription_ids: string[];
  payer_ord_addr: string;
  fee_rate: string;
  payer_btc_addr: string;
  payer_pub_key: string;
  check_sum: string; // 上面预请求接口返回
  vins: string[]; // 上面预请求接口返回
}

Important Notes:

  1. Use the same address for both payer_ord_addr and payer_btc_addr.

Last updated