Skip to content

OpenOrdex is an open source zero-fee trustless Bitcoin NFT marketplace based on partially signed bitcoin transactions

License

Notifications You must be signed in to change notification settings

p0stcapone/openordex

 
 

Repository files navigation

OpenOrdex - Open Ordinals Decentralized Exchange

OpenOrdex is an open source zero-fee trustless Bitcoin NFT marketplace based on partially signed bitcoin transactions

How it works

The seller creates a partially signed bitcoin transaction (PSBT) specifying the price of the ordinal.
The buyer can then sign the PSBT and broadcast it to the network.

How to add your collection

All inscriptions can be viewed directly via their inscription number or ID.

In addition, the homepage features collections in a random order.
The collection data is taken from the ordinal-collections repo.

In order to have your collection listed, create a pull request on the ordinal-collections repo.

How to run Openordex in your localhost

Build docker image

$ docker build -t openordex .

Run Openordex with docker

$ docker run -it -d -p 8080:80 openordex

Screen Shot 2023-03-06 at 9 40 15 AM

Transaction Mapping

All Initial Asks are Submited as PSBTs with:

Inputs Outputs
From maker > Inscription Ask > To Maker

Signed and submitted to the order book by the maker

The taker finalizes the PSBT based on available UTXOs and fee market conditions:

Inputs Outputs
From Taker > Payment* Change* > To Taker
From Maker > Inscription Ask > To Maker
From Taker > Additional** Inscription > To Taker
Change** > To Taker

*There may be multiple UTXOs used for Payment. There must be an equal number of Change outputs (to enforce index match requirements of sighashsingle) **There may be multiple Additional, they will be used to pay for fees or add additional padding to Output: Inscription in cases where the output would drop below 2k sats (due to fees)

The inscribed sat will remain at a sat index below the dust limit (546), and the inscription output will never be less than 2k sats.

About

OpenOrdex is an open source zero-fee trustless Bitcoin NFT marketplace based on partially signed bitcoin transactions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 81.8%
  • CSS 14.0%
  • HTML 4.2%