Ask Orders

1. Maker creates ASK PSBT

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 ASK PSBT that the maker creates

2. Exchange lists the order

The exchange lists the order created by the maker.

3. Taker completes the order

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.

Taker completes the order

4. The Exchange Checks the Status of the Order

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.

Technical flowchart for placing ASK orders

Last updated