Picture a café with ten thousand regulars that wants to give each of them a membership card. Claude's estimate for doing that on Solana was about 0.18 SOL. The first bill was 1.077310120 SOL.
The usual way on Solana is like renting a locker at the bank for every card. Every locker needs a deposit, so ten thousand cards means ten thousand deposits.
The cheaper way is one locker. Inside goes a single thing: a fingerprint of the whole member list. A fingerprint here is a short code worked out from every entry on the list, and if one entry changes, the code comes out different. The list itself isn't locked away. Each new member is announced in the town's public record, where anyone can read it.
On Solana the locker is an account, a piece of storage you pay a deposit for. The card is a compressed NFT, and an NFT is only a token there is exactly one of. The program that keeps the tree is Bubblegum, from a team called Metaplex, and it comes in two versions: the original, version one, and the current one, version two. The public record is Solana's own transaction history, and a service called an indexer reads it and keeps the list, so a wallet can be looked up.
For Deed #9 we built a loyalty drop: a script that gives a card to 10,000 wallets and reports what it cost, and a page where a card's holder signs in for a free coffee. Deed #8 was about how a program gets a price it can trust. This one is about who controls a card after it has been handed out.
It has two short videos. Part 1, the free way makes the drop on version one. Part 2, what the fee buys shows what version two's fee pays for. Both run on devnet, Solana's practice network, with test wallets and play money, and the source is public.
How does a member prove they're on a list the bank has never seen?
The entries are paired up, and each pair gets a code of its own. Those codes are paired again, and again, until one code is left at the top. That shape is a Merkle tree, and the code at the top is its root. The root is the fingerprint in the locker. To prove a card is real, a member shows their own entry and one code from each level on the way up. If those combine into the root, they're on the list.

Why did the first drop cost six times the estimate?
The first drop was on version two. Before building it, Claude priced it from rent and network fees: about 0.18 SOL. Then it ran the drop on a local validator carrying devnet's copies of the programs, and every mint transaction moved 0.00036 SOL from the payer to the tree's config account on top of its network fee. That is 0.00009 SOL a card, and the library that builds the instruction doesn't mention it. Metaplex's fee page does: Bubblegum V2 "Create 0.00009 SOL", Bubblegum V1 "Free".
On devnet, on 26 November 2026 (UTC), the drop minted 10,000 cards for 1.077310120 SOL. The deposit for the collection and tree was 0.164790120. Network fees were 0.012520000. The protocol fee was 0.900000000, 84% of the total, and the payer's balance fell by exactly the total. I kept version two and raised the spending cap from 1 SOL to 1.2.
What does a drop of the same size cost without the fee?
After the first cut of the video was approved I asked what the fee buys beyond supporting Metaplex. Claude read Metaplex's own pages: control over a card after it has been handed out, which version one doesn't offer and our drop hadn't used. I chose to build it: first the free way, then a drop that uses what the fee buys.
On version one, 10,000 cards took 3,334 transactions of three and 28 minutes. Three, not four, because every card carries its picture's 110-character address. One send was refused with "Blockhash not found". The script didn't resend it until the chain's block height showed it could never land, then logged it as expired and signed it again. No card went out twice. It was the first failure the deed had met on devnet.
I capped the run at 0.25 SOL. It cost 0.197063040: 0.180373040 for the collection and tree, 0.000020000 for the two setup transactions, 0.016670000 for the 3,334 mint transactions, and a protocol fee of nothing. That is 0.000019706 per card, 18% of version two's bill.
What happens when a regular hands their card to a friend?
The perk is a free coffee. A member signs a short message in their wallet, which sends no transaction, and the server checks the card against the root on chain.
On version one a holder gave a card to a second wallet with one command, signed by the holder. It cost the network fee of 0.000005 SOL and no protocol fee. The friend signed in and got the coffee. The holder signed in and didn't. To the café the card is the ticket, and whoever holds it is the member.
Then Claude tried to take a card back, with the key that made the whole drop. The program refused before anything was sent: LeafAuthorityMustSign, "This transaction must be signed by either the leaf owner or leaf delegate". The free card can be handed on and can't be cancelled.
What does the fee buy?
Version two answers those two questions, and two more.
Can a card stay with the member it was given to? A card that can be passed on is transferable, like a paper voucher that works for whoever has it in their pocket. One that can't is soulbound, like a stamp on the back of your hand at a gig. You can't give it to a friend, though you can wash it off: on a local validator, a holder could still burn their own soulbound card. That suits a membership, a ticket you attended, a course you finished. Those are about a person, not about whoever holds a token.
Can the café cancel a card? Destroying a card is burning it, like cutting a membership card in half. A delegate is someone allowed to act on a card for its holder, like a spare key to one locker. A permanent delegate is different: a power written into the collection when it's created, like a club rule set at the founding, and it can't be added later. With a permanent burn delegate the café can cancel any card without the holder signing. That matters when a membership ends or a card went to the wrong wallet. It's also power over the people holding your cards, so they should know it's there.
Two more terms. Freezing a card is the desk putting your card on hold: still yours, but it can't move until it's thawed. A royalty is the creator's cut of every resale, like an artist getting a share each time a painting changes hands, and version two can enforce one by refusing to move a card through programs the creator has blocked. A soulbound card is never resold, so this drop sets no royalty, and freezing and royalties are explained here, not built.
Version two gives some things up. A version-one card can be decompressed into an account of its own, and Metaplex's V2 FAQ says version two isn't compatible with decompression. And it's new: the table on Metaplex's Bubblegum V2 page says Solflare, Phantom and Backpack show version-two cards but can't yet send them, and that Magic Eden and Tensor don't yet support them. For a card meant to stay put, that's no loss.
The price is the fee, 0.00009 SOL on every card, the printer's charge for each one. Metaplex's fee page says protocol fees are used to further the objectives of its non-profit foundation: currently half are converted to its $MPLX token for the DAO's treasury and half are kept by the foundation.
What did the soulbound drop do on devnet?
The collection is created with two permanent powers, freeze and burn, because the program refuses to mark a card soulbound without the freeze power. Claude tried it on a local validator first: "Invalid authority". Each card is then minted and marked in one transaction. A transaction happens whole or not at all, so no card is ever transferable, even for a moment.
The mark has to point at the card's place in the tree before the card exists. The tree's account keeps the path to its newest card, and that's enough to work out the proof for the next empty place. A mint and its mark fit one transaction and two don't, so the drop goes one card per transaction. At 14 levels the proof leaves 88 characters for the picture's address, and ours is 110, so this drop uses a 5-level tree: 32 cards at most. I chose 32 and capped the run at 0.03 SOL.
It took 2 minutes 18 seconds and 32 transactions, and cost 0.016359440 SOL: 0.013299440 for the collection and tree, 0.000020000 for the two setup transactions, 0.000160000 for the 32 mint transactions and 0.002880000 in protocol fees. The tree's root on devnet matches all 32 cards hashed with the soulbound flag, and doesn't match without it.
A holder tried to give a card away. The program refused with AssetIsNonTransferable, "Asset is non-transferable", and nothing moved. A stranger's key could neither revoke a card nor mark one: InvalidAuthority. Then the café revoked a card without its holder signing anything. The lookup stopped finding it, and that wallet's sign-in got no coffee.
Which one should the café pick?
Three bills. Ten thousand cards on version one: 0.197063040 SOL. Ten thousand on version two: 1.077310120. Thirty-two soulbound cards: 0.016359440, about half a thousandth each, mostly the tree's deposit. If the cards are a giveaway and cost is the point, version one. If a card is about a person and you might need to cancel one, version two, soulbound and revocable. If cards are meant to be traded, version two with royalties, after checking where they can be traded. For whoever runs the cards, that is arithmetic and trade-offs, not advice about money.
What does it leave out?
Nearly all the 10,000 wallets are test addresses nobody holds keys to, so nobody could use those cards. I tried the sign-in with one wallet app, Solflare in Chromium. The server still trusts the node it asks for the tree's root. The soulbound behaviour is shown on 32 cards, and nothing has been audited or run on mainnet.
The checks had a hole of their own. 130 tests pass, and in a scratch copy 33 changes to the code each made a named test fail. The first run of that check reported 33 of 33 caught, and none of it counted: the copy's tests couldn't start, so every "catch" was a crash. Claude noticed only because the next run failed before the first change. The script now refuses to start unless the unchanged copy passes. Two commands, give and revoke, were changed after that run and were not put through it.
Claude's estimate of about 0.18 SOL left out the fee, and version one, the drop with no fee, came to 0.197063040. A card that stays with its member and can be cancelled costs 0.000511232 SOL, mostly the tree's deposit. The source is public: https://github.com/nissan/solana-m4-compressed-loyalty-drop-public.