Ask Orders
Last updated
Last updated
Maker creates a partially-signed Bitcoin transaction (PSBT) for an ask order where the input is the BRC20 Ordinal UTXO and the output is the amount of Bitcoin they wish to exchange.
Maker should then sign the PSBT with a SIGHASH type of SIGHASH_SINGLE | ANYONECANPAY
, and then publish the order to the exchange.
The exchange lists the order created by the maker.
Taker accepts the order and builds a complete BUY PSBT based on the single-signed ASK PSBT. The transaction structure is as follows.
The Taker should then sign the BUY PSBT with a SIGHASH type of SIGHASH_ALL
.
The Taker then broadcasts the transaction to the BTC network and reports to the exchange to update the order state.
The exchange checks whether the transaction has been successfully broadcast to the BTC network. Once confirmed, the exchange should mark the order status as completed and delist it.
This process allows for secure, seamless, and trustless trading between parties with different types of assets.