agorix
AirdropMarketsCollectionsLeaderboardActivity
Agorix · Decentralized Marketplace
Independent · Resilient · Community-Run

A cross-chain marketplace, run by the community.

Discover, list, and trade across Bitcoin, Ethereum, and Solana on an open, community-run network.

Marketplace
CollectionsMarketsLeaderboardActivity
Network
GovernanceExplorerAirdropDocs
Account
ProfileSettings
Legal
Terms of ServicePrivacy PolicyYour Privacy Choices
agorix.io — Lasting Access
CID: 0xA60R1X · v0.1
AirdropMarketsCollections
D
Protocol Docs
Bitcoin & OrdinalsEthereum & L2sSolanaSettlement Flows
Docs/Multi-Chain/Settlement Flows
Multi-Chain

Settlement Flows

Cross-chain settlement comparison. How purchases finalize on BTC, EVM, and SOL, and the common attestation pipeline that unifies them.

#Settlement Flows

Every chain settles differently, but all chains converge on the same attestation pipeline. This page compares the settlement mechanics across BTC, EVM, and SOL, and documents the common finalization flow.

#Bitcoin Settlement

BTC settlement is the most complex because it uses off-chain PSBT shard reconstruction instead of a smart contract:

text
Buyer submits order intent
    │
    ▼
Buyer sends signed reveal challenges to 3+ shard nodes
    │
    ▼
Each node verifies Ed25519 signature + order validity
    │
    ▼
Buyer collects 3 of 4 shards (within 30s TTL)
    │
    ▼
Lagrange interpolation over GF(256) reconstructs AES key
    │
    ▼
AES-256-GCM decrypts the seller-signed PSBT
    │
    ▼
Buyer adds payment inputs + change output to PSBT
    │
    ▼
Buyer finalizes and broadcasts transaction to Bitcoin network
    │
    ▼
Witness nodes observe the transaction in mempool/block
    │
    ▼
Attestation pipeline (TX_OBSERVED → TX_ATTESTATION → TX_FINALIZED)

Key characteristic: the seller's private key never leaves their device. The PSBT template contains only the seller's signature over their input. The buyer completes the transaction independently.

#EVM Settlement

EVM settlement uses smart contract execution with quorum-verified transaction plans:

text
Buyer submits purchase intent
    │
    ▼
TX-plan quorum verification (2/3 nodes simulate + agree)
    │
    ▼
Buyer submits transaction to DecenterlizeMarketV1 contract
    │
    ▼
Contract verifies EIP-712 seller signature on-chain
    │
    ▼
Contract transfers NFT (ERC-721/1155) from seller to buyer
    │
    ▼
Contract splits fees (foundation + reward pool) and pays seller
    │
    ▼
Witness nodes observe the on-chain event logs
    │
    ▼
Attestation pipeline (TX_OBSERVED → TX_ATTESTATION → TX_FINALIZED)

Key characteristic: the smart contract enforces settlement atomically. Either the entire trade executes (NFT transfer + fee split + seller payment) or nothing happens. TX-plan quorum prevents submission of malicious transactions before they hit the chain.

#Solana Settlement

SOL settlement uses transaction simulation followed by on-chain execution:

text
Buyer submits purchase intent
    │
    ▼
Transaction is built and simulated against current Solana state
    │
    ▼
Simulation verifies: correct accounts, sufficient balance, valid program
    │
    ▼
Transaction broadcasts to Solana network
    │
    ▼
Marketplace program executes SPL transfer + fee distribution
    │
    ▼
Witness nodes verify the transaction via their own RPC
    │
    ▼
Attestation pipeline (TX_OBSERVED → TX_ATTESTATION → TX_FINALIZED)

Key characteristic: Solana's transaction simulation provides a dry-run before broadcast. The entire transaction is validated against the current cluster state before spending any SOL on fees.

#Common Attestation Pipeline

Regardless of chain, every settlement converges on the same three-phase attestation:

Phase 1: TX_OBSERVED

A witness node detects the settlement transaction on-chain (Bitcoin mempool/block, EVM event log, Solana transaction confirmation). The node emits a TX_OBSERVED protocol event signed with its Ed25519 key.

Phase 2: TX_ATTESTATION

Each selected witness independently verifies the on-chain transaction and emits a TX_ATTESTATION event. The attestation includes:

  • Transaction hash
  • Chain-specific confirmation data (block height, slot number, etc.)
  • Whether the transaction matches the expected settlement parameters
  • The witness node's Ed25519 signature

2/3 supermajority required. The protocol waits for at least 2/3 of the selected witness set to submit matching attestations. Minority disagreement (up to 1/3) is tolerated without affecting finalization.

Phase 3: TX_FINALIZED

Once the 2/3 attestation threshold is met, the protocol emits TX_FINALIZED. This is the point of no return:

  • The listing is marked as sold.
  • The seller's ask is closed.
  • Fee distribution records are created.
  • The sale is credited as work weight to the nodes named in the purchase (serving, media, witness, custody) for the current epoch.
  • The event is written to the immutable protocol log.

#Fee Distribution by Chain

ChainMarketplace FeeFoundationReward poolRoyalties
BTC2% (200 bps)50% of fee50% of feeDeducted pre-fee
EVM2% (200 bps)50% of fee50% of feeDeducted pre-fee
SOL2% (200 bps)50% of fee50% of feeDeducted pre-fee

Fee structure is identical across all chains. Royalties (set by the collection creator) are deducted from the sale price before the marketplace fee calculation.

#Settlement Timing

ChainTypical FinalizationConfirmations
BTC10-60 minutes1 block (protocol observes mempool, finalizes after confirmation)
EVM L12-5 minutes12 blocks (Ethereum finality)
EVM L210-30 seconds1 block (L2 fast confirmations)
SOL5-15 seconds1 confirmation (Solana fast finality)

The attestation pipeline runs in parallel with chain confirmations. Witnesses begin observing as soon as the transaction appears, and attestations accumulate as the transaction confirms.

#Cross-Chain Invariants

These properties hold regardless of which chain a trade settles on:

  • No single point of failure. Settlement requires both on-chain execution AND protocol attestation.
  • Deterministic witness selection. The same witness set is computed by every node for the same transaction.
  • Atomic fee accounting. Fee records are created at finalization, not before. No partial fee states.
  • Immutable audit trail. Every step (observation, attestation, finalization) is a signed protocol event in the log.
PreviousSolanaNext Proof of Access

On this page

  • Settlement Flows
  • Bitcoin Settlement
  • EVM Settlement
  • Solana Settlement
  • Common Attestation Pipeline
  • Fee Distribution by Chain
  • Settlement Timing
  • Cross-Chain Invariants