ARC20

Build the PSBT for adding liquidity

post
/brc20swap/v2/create_add_liquid_psbt2
Body
tick1stringRequired
tick2stringRequired
amount_1stringRequired
amount_2stringRequired
slipperstringRequired
payer_ord_addrstringRequired
fee_ratestringRequired
payer_btc_addrstringRequired
payer_pub_keystringRequired
coin_type_1stringRequired
coin_type_2stringRequired
tokenstringRequired
Responses
200Success
application/json
post
/brc20swap/v2/create_add_liquid_psbt2

Important Notes

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

  2. Minimum injection thresholds:

    • BTC: 0.003

    • ARC20: ≥ 546 and must be a positive integer

  3. After adding liquidity, the remaining balance of the token in the user's wallet must be either 0 or greater than 546.

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
post
/brc20swap/v2/add_liquid_by_psbt

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

Last updated