Deep dive
Marketplace Settlement on Sui: Fees, Royalties, and Seller Proceeds
What actually happens when an NFT trade settles on Sui, and why fees, royalties, seller proceeds, and indexing should share one source of truth.

An NFT sale can look like one simple action in the interface: the buyer clicks Buy, the seller receives funds, and ownership changes. The real settlement path is more demanding. It has to validate that the trade is still valid, resolve creator rules, calculate the platform fee and royalty, route seller proceeds, deal with the exact payment amount, move the asset, emit reliable events, and give the indexer enough information to record the sale exactly once. If fixed-price sales, offers, collection offers, and auctions each implement that logic independently, they will eventually disagree.
A sale is more than a token transfer
The asset transfer and the economic split belong to the same outcome. A gross payment may need to become a platform fee, a creator royalty, and seller proceeds while the NFT moves to the buyer. Those amounts should be calculated from one authoritative set of inputs and finalized atomically. Partial success is dangerous: a marketplace should never reach a state where ownership moved but an expected payout did not, or where the backend thinks a sale happened even though the chain rejected it.

One settlement path, many trade types
Ganbitera routes trade-completing paths through one trading-engine settlement module. A fixed-price purchase, an accepted item offer, an accepted collection offer, and an auction settlement differ in how they reach an agreement, but the final economic job is the same. Centralizing that job gives fee and royalty changes one audit target. It also means a new trading feature can reuse the established payout logic instead of quietly creating a second interpretation of marketplace economics.

The off-chain mirror has a different job
The database is still essential. Users expect instant activity feeds, collection volume, price history, search, rankings, and portfolio views. Those are indexing problems, not settlement problems. Ganbitera separates Marketplace Settlement from Sale Recording: the chain completes the trade, then an off-chain recorder inserts the sale and updates collection statistics. The database makes the result searchable and fast; it does not get to decide whether the sale was valid.
Idempotency protects the index
Event consumers retry, processes restart, and indexers replay historical ranges. A sale recorder that assumes every event arrives once will eventually double-count volume or insert duplicate history. Ganbitera identifies an indexed sale by the transaction digest and event sequence so the same chain event can be processed repeatedly while producing one sale record. Replay safety turns recovery from a risky operation into a normal one.
Settlement is where trust becomes visible
Most users will never inspect a settlement module. They will notice its consequences: predictable fees, respected creator royalties, correct seller proceeds, consistent trade history, and the same economics whether they buy immediately or win an auction. That is why settlement should be treated as core marketplace infrastructure rather than glue code between a button and a transfer.

