Get Unsigned Swap PSBT
Last updated
Last updated
If it is an ARC20 token, you can directly obtain the unsigned PSBT without a pre-request.
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.
Unlike BRC20, no pre-request is needed.
When swapping BTC for ARC20, the amount of ARC20 to be received plus the ARC20 already in the user's wallet must not be less than 546.
When swapping ARC20 for BTC, the remaining amount of the ARC20 token in the user's wallet after the swap must not be less than 546.
/brc20swap/get_swap_psbt
token
Obtaind from get_swap_psbt_txsize
Obtaind from get_swap_psbt_txsize
Obtaind from get_swap_psbt_txsize
Use swap for non-routing, pools_swap for routing. Default pools_swap