After obtaining the unsigned PSBT, the user must sign it within 30 seconds.
Use the same address for both btc_address and address.
For user_public_key, provide the parameter as public_key:public_key for a wallet with one address, or btc_public_key:ordi_public_key for a wallet with two addresses.
The token must be retrieved from the /swap-info endpoint and can only be used once.
Get unsigned PSBT
post
/brc20swap/get_swap_psbt2
Header parameters
Authorizationstring
token
User-Idstring
Body
send_coin_typestringrequired
send_tickstringrequired
send_amountstringrequired
receive_coin_typestringrequired
receive_tickstringrequired
receive_amountstringrequired
addressstringrequired
slipperintegerrequired
fee_rateintegerrequired
user_public_keystringrequired
chlstringrequired
methodstring
Use swap for non-routing, pools_swap for routing. Default pools_swap