We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
OrdLock listing
OrdLockAn object offered for sale. The lock itself is the offer: it names the price and who gets paid.
What it is
OrdLock is a contract that holds an object until someone pays for it. The seller writes the payment they want, as a whole output, into the lock. Any buyer can open it by building a transaction that includes that exact output, so the seller is paid in the same transaction that hands over the object, or neither happens. The seller can also cancel with a signature.
Script pattern
-
<contract prefix>Fixed contract code that checks the spending transaction. -
<seller pubkey hash>20 bytes: who can cancel. -
<payout output>The output a buyer must create: the price in sats and the seller's lock. -
<contract suffix>More fixed contract code.
The contract code is the same in every listing; only the seller and the payout change.
How it is spent
Either the seller cancels with a signature, or anyone buys by paying the price the lock names.
Background
OrdLock came with the 1Sat Ordinals marketplace in 2023, so listings could live on chain rather than in a market's database. It ships in the @1sat/templates package that wallets use to build and read listings.
On chain
- 6bc3a4ef3e5ade84b0ce752e6b78e5cf27ddc3d36bfc762774300113ba81ffac block 957,677
- d2ea3c8b874785265696eadea4596707c64ab4beb5eac0b8be513a483cc8d8da block 957,656
- fc5ca04d89e265de99a3a7f14882a64bc92871ef90abd1236a692d7be4e9b66c block 957,656
- fed59d0888fb781ba78bbffa9eb6927bd457a73a206c4608edf76507967c02bf block 957,656
- c5c28748551fbda76b0891f1c8a35e83d833518c4410b4659c30df0d398e9fa7 block 957,656
Transactions with an output of exactly this script shape, by template hash f53f98ec68a2… Transaction pages need sign-in.
Specification
- @1sat/templates
- /api/v1/types/ordlock
- /api/v1/txs?type=ordlock every stored tx of this type, newest first, with an API key or signed in.