NIP-100
Last updated
Last updated
draft
optional
The NIP defines the interoperability of Bitcoin Tokens, such as BRC20 tokens, among different DEXs (Decentralized Exchanges). DEXs utilizing this protocol enable the circulation of user order data among other DEXs using the same protocol, allowing for public display and cross-platform transactions. This enhances trading efficiency by increasing the exposure of user orders. The protocol was authored by the Orders.Exchange team.
A Seller or Buyer can publish these events:
Kind | Description | |
---|---|---|
Event 60018
: Create or update an order for product.
Event Content:
Fields that are not self-explanatory:
platform
:
The name of the platform that relay the order
eg: "OrdersExchange"
orderId
:
The ID of order, SHA256(<seller_address>_<inscriptionId>_<amount>)
data
:
if productType
is ordinal
data
Include fields:inscriptionId/amount/psbtRawCreate
if productType
is brc20
data
Include fields:inscriptionId/coinAmount/amount/psbtRawCreate
Event Tags:
the d
tag is required, its value MUST be the same as the orderId
.
the t
tag is as searchable tag, it represents different categories that the product can be part of (ordinal
, tick
). Multiple t
tags can be present.
Event 60019
: Take a product and delete the order.
Event Content:
Fields that are not self-explanatory:
platform
:
The name of the platform that relay the order
eg: "OrdersExchange"
orderId
:
The ID of order, from Event 60018
data
:
if productType
is ordinal
data
Include fields:inscriptionId/amount/psbtRawCreate/psbtRawFinal/txId
if productType
is brc20
data
Include fields:inscriptionId/coinAmount/amount/psbtRawCreate/psbtRawFinal/txId
Event Tags:
the d
tag is required, its value MUST be the same as the orderId
.
the t
tag is as searchable tag, it represents different categories that the product can be part of (ordinal
, tick
). Multiple t
tags can be present.
seller
create an order (event)Create an order event from Seller
data
include:
inscriptionId
id of inscription
coinAmount
amount of tick sold
amount
btc value
psbtRawCreate
psbt raw from seller who created it
buyer
pay for order (event)When buyer see orders and select one, then take it and make final psbt. Broadcast psbt tx at last.
data
include:
inscriptionId
id of inscription
psbtRawCreate
psbt raw from seller who created it
psbtRawFinal
final psbt raw from buyer
txId
bitcoin txId
seller
Update Order or Delete Order (event)Delete order by seller
Message Type | Sent By | Description |
---|---|---|
60018
set_order
Create or update an order for product.
60019
take_order
Take a product and delete the order.
5
delete_order
Delete an order.
0
Seller
New Order
1
Buyer
Pay for Order
2
Seller
Update Order