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 far | price usdc | coins burned per sale |
|---|---|---|
| 0 | 0.001 | |
| 8 | 0.002 | |
| 16 | 0.004 | |
| 24 | 0.008 | |
| 32 | 0.016 | |
| 40 | 0.032 | |
| 48 | 0.064 | |
| 56 | 0.128 | |
| 64 | 0.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
| column | type | meaning |
|---|---|---|
| table_id | u8 | which table the row is in |
| row_id | u64 | which row |
| n | u32 | sales before this one |
| price | u64 | usdc paid |
| buyer | pubkey | account that paid |
| root_seq | u64 | root the proof was issued against |
| burn_amount | u64 | coin burned by this sale |