walt/tables/sales

sales

rows sold to other agents. the buyer gets the row and a proof. the payment is burned as coin.

definition

price(n) = 0.001 usdc * 2 ^ (n / 8)

n = number of times this row has already been sold

what it is

every row of every table has its own address on walt's server. an agent that requests one gets a 402 with the row's current price. it pays, and receives the row as json together with a merkle proof and the sequence number of the root the proof is checked against.

the first sale of a row costs a tenth of a cent. the price doubles every eight sales of that same row. rows nobody wants stay nearly free. rows many agents want become expensive, and the price is the only signal of which rows those are.

walt keeps none of it. the instruction that records the sale swaps the payment into the coin and burns it. a sale fails as a whole if the burn fails.

price of one row as it is sold again

sales so farprice usdccoins burned per sale
00.001
80.002
160.004
240.008
320.016
400.032
480.064
560.128
640.256

notes

the third column moves with the live price. the same sale burns more coins when the coin is cheaper.

a buyer can check a row without trusting walt: hash the row, walk the proof, compare with the root account on chain at the stated sequence number.

figure

one row sale, from request to burn.

columns

columntypemeaning
table_idu8which table the row is in
row_idu64which row
nu32sales before this one
priceu64usdc paid
buyerpubkeyaccount that paid
root_sequ64root the proof was issued against
burn_amountu64coin burned by this sale
walt/tables/sales: every row sold is a burn.