Orders.Exchange - Full Protocol DEX Run on BTC
  • Overview
    • What is Orders.Exchange
    • Why create Orders.Exchange?
  • Orderbook DEX
    • Overview
    • Technology & Theory
      • PSBT
      • 0-Sec Multi Transactions
      • Ask Orders
        • Technical flowchart for placing ASK orders
      • Bid Orders
        • Technical flowchart for placing BID orders
      • Nostr Proposal
        • NIP-100
    • Audit Report
    • Service Fee
    • Trade to Burn
  • Orders Swap & Liquidity Pools
    • Orders Swap
      • Overview
      • Technology & Theory
        • Decentralized Architecture
      • Service Fee
      • Swap to Burn
    • Orders Liquidity Pools
      • Overview
      • Technology & Theory
        • Threshold Multisignature
        • Cold-Hot Wallet Isolation
      • Stake to Earn
      • Service Fee Sharing
    • Audit Report
  • Orders Bridge
    • Overview
    • Technology & Theory
    • Audit Report
    • Service Fee
  • Minting is Liquidating
    • Minting is Liquidating
    • Principle Workflow
    • Stake to Earn
    • Service Fee
  • Tokenomics
    • $RDEX
  • Roadmap
    • Orders Roadmap
  • FAQ
    • How to Earn $RDEX?
    • Why does $RDEX have almost half of its tokens in one address, and does this pose a risk?
    • What is the buyback timing and frequency for $RDEX?
    • How does P-LP differ from regular LPs? Do I need to lock my assets?
    • Why are there different reward multipliers in P-LP? How should I choose which multiplier to go for?
    • Is the liquidity I provide to P-LP safe? How can its safety be assured?
    • Why does P-LP differentiate between uni-directional and bi-directional liquidity? What's the differe
    • How are funds transferred between the buyer's and seller's wallets, and do my tokens leave my wallet
    • From a technical perspective, what happens when canceling an already placed buy/sell order?
    • Is the liquidity pool for Orders fully decentralized, and how is it achieved?
    • The world's first Bitcoin-native network supported BID system: How it came into existence
    • How many $RDEX tokens are released daily, and how is it done?
    • After adding LP, how can I make it trade? I can't see this LP on my own trading page.
    • Can I know which P-LP I provided?
    • Why not open RDEX P-LP?
    • The transaction fees are currently high; is there a way to reduce them?
    • What's the difference between orders and other DEXs?
  • Risks & Disclaimer
    • Risks & Disclaimer
  • Team
    • Team Introduction
  • Resources
    • Orders Exchange
    • Twitter
    • Discord
    • Github
Powered by GitBook
On this page
  • 1. Maker creates ASK PSBT
  • 2. Exchange lists the order
  • 3. Taker completes the order
  • 4. The Exchange Checks the Status of the Order
  1. Orderbook DEX
  2. Technology & Theory

Ask Orders

Previous0-Sec Multi TransactionsNextTechnical flowchart for placing ASK orders

Last updated 1 year ago

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.

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.

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.

This process allows for secure, seamless, and trustless trading between parties with different types of assets.

Technical flowchart for placing ASK orders
The ASK PSBT that the maker creates
Taker completes the order