Stateless Crypto Store Reads Payments Directly From BNB Chain, Skipping a Backend
A developer has built an e-commerce checkout with no backend or database, relying entirely on public blockchain data. The store checks the merchant's USDT balance on the BNB Smart Chain through a read-only contract call made from the customer's browser. The page captures a baseline balance when an order starts, then polls every 20 seconds and marks the order paid once the balance increase matches the quoted amount within a 0.1% tolerance. Orders expire after 60 minutes, and small random amount suffixes plus manual owner verification are used to handle concurrent buyers. The author presents the design as eliminating dropped-webhook reconciliation problems, at the cost of a manual confirmation delay before goods are shipped.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in