How the decentralized marketplace works end-to-end. Listing creation, order lifecycle, settlement flows, fee distribution, and the role of every participant.
Agorix is a general-purpose decentralized marketplace for digital assets -- an eBay replacement where no single company controls listings, pricing, or settlement. Every operation is enforced by code running identically on every node in the network.
| Role | Description |
|---|---|
| Seller | Lists assets for sale by signing chain-native authorization (PSBT, EIP-712, SPL) |
| Buyer | Submits purchase intent, receives a signed quote, and completes settlement |
| Witness nodes | Selected deterministically to validate and attest transactions |
| Reward pool | Per-chain wallet that receives the network half of the marketplace fee. It is shared out to nodes each epoch by measured work |
| Foundation | Receives 50% of the marketplace fee for protocol development |
| UI provider | The node serving the buyer's frontend session |
Sellers create listings by signing a chain-native authorization that commits their asset to a specific price. The listing is published as a LISTING_CREATE protocol event gossiped to every node.
Bitcoin (Ordinals):
The seller signs a PSBT with SIGHASH_SINGLE|ANYONECANPAY. The signed PSBT is then encrypted with AES-GCM, split into Shamir 3-of-4 secret shares, and distributed to 4 independent shard-holder nodes. No single node can reconstruct the PSBT alone.
Ethereum / EVM L2s:
The seller signs an EIP-712 typed data order containing the asset contract, token ID, price, nonce, salt, expiration, and fee breakdown. The signature is verifiable on-chain by AgorixV1.sol.
Solana:
The seller creates an SPL token transfer authorization via the agorix_marketplace program, scoped to the specific asset and price.
Every listing follows a simple three-state lifecycle:
OPEN --> FILLED (purchase completed, settlement confirmed)
|
+--> CANCELLED (seller delists or listing expires)Each listing tracks a revealNonce counter that increments after every PSBT share reveal attempt, preventing replay attacks on Bitcoin settlement.
- BTC: Buyer requests PSBT shard reveals, reconstructs the transaction, signs, and broadcasts
- EVM: Smart contract verifies signatures, checks attestation quorum, executes atomic swap
- SOL: Marketplace program executes SPL transfer with on-chain fee distribution
ORDER_INTENT with their public key and the listing they want to purchasesessionQuotes with the serving node's Ed25519 signatureThe marketplace charges a 2% (200 basis points) fee on every sale, computed using integer arithmetic with no floating point:
| Recipient | Share | Example on 100 USD sale |
|---|---|---|
| Foundation | 50% of fee (1% of sale) | 1.00 USD |
| Reward pool | 50% of fee (1% of sale) | 1.00 USD |
| Creator royalties | Configurable per collection (0-100%) | Variable |
| Seller | Price minus fees minus royalties | 98.00 USD minus royalties |
All fee calculations use basis points (1 bps = 0.01%). The fee range is governance-configurable between 50-500 bps.
Listings specify a uiFeeAddress that determines where the non-foundation share of fees goes:
rewardPool.recipients). This is the normal case. If no pool wallet is configured for the chain, the sale is refusedWhen settlement completes, the system validates the full output breakdown:
A PURCHASE_RECORDED protocol event is published and gossiped to all nodes. The sale's fee is credited as work weight to the serving, media, witness and custody nodes named in the purchase. Rewards are paid through signed claims after the epoch settles.