Use the same address for both payer_ord_addr and payer_btc_addr.
Add liquidity
post
/brc20swap/v2/add_liquid_by_psbt
Body
psbtstringRequired
tick1stringRequired
tick2stringRequired
amount_1stringRequired
amount_2stringRequired
slipperstringRequired
payer_ord_addrstringRequired
fee_ratestringRequired
payer_btc_addrstringRequired
payer_pub_keystringRequired
check_sumstringOptional
chlstringOptional
coin_type_1stringRequired
coin_type_2stringRequired
tokenstringRequired
Responses
200Success
application/json
x-200:Success
application/json
post
/brc20swap/v2/add_liquid_by_psbt
Finally, send the signed PSBT. If the response indicates success, the liquidity has been added/created successfully.
The request parameters of the previous interface are inherited, and an additional psbt is passed. export interface SendPoolPsbtBody extends PoolPsbtBody { psbt: string; }