SILENT MARKET
Silent Market

How it works

VIEW BY
STEPPREVIEWROLEWHEREWHAT HAPPENS
01Paste a mint
getAccountInfo(mint)
> Token-2022 ยท 6 dp
> freeze: revoked
> supported_
MakerOn the deskDrop any token mint. The desk reads its program, decimals, freeze authority and extensions from the chain and tells you if the escrow can hold it.
02Set your terms
lot   1,000,000 TKN
price 2.0 SOL
min   whole lot
lives 7 days_
MakerOn the deskPick the size, one price for the whole lot in USDC or SOL, the smallest fill you accept and how long the lot lives. Next to it you see what the same size fetches on the open market right now.
03Lock the lot
create_sell_order()
> vault = ATA(order, mint)
> 1,000,000 TKN locked_
MakerOn chainSigning creates the order and moves your tokens, or your payment for a buy lot, into a vault owned by the order itself. Nobody else can move them, the desk included.
04A taker fills it
fill_sell_order(amount)
> tokens -> taker
> 1.98 SOL -> maker
> 0.02 SOL -> fee_
TakerOn chainA taker picks the lot and settles it in one transaction: tokens to the buyer, payment to the seller, 1% to the fee wallet. A partial fill takes a slice at the same price.
05Cancel any time
cancel_order()
> leftovers -> maker
> rent -> maker
> accounts closed_
MakerOn chainChanged your mind? Cancel, and whatever is left comes back to you together with the rent of the order accounts. This works even while trading is paused.
06Expiry refunds
refund_expired()
> now >= expires_at
> escrow -> maker_
AnyoneOn chainEvery lot has an expiry. Once it passes, anyone can send the leftovers back to the maker. Funds from an order only ever go back to its maker.