primer · onchain

Four onchain primitives, demystified.

Every idea in this repo leans on one of four web3 primitives. Each one runs against Tempo Moderato — a public, EVM-compatible testnet where fees are paid in stablecoins — so you can ship a verifiable demo with zero hosting and zero gas spent by your users.

The secrets

Add these in your Lovable project (Settings → Secrets) before pasting any mega-prompt. LOVABLE_API_KEY is provisioned automatically.

  • LOVABLE_API_KEYAuto-provisioned by Lovable. Powers Lovable AI Gateway. No action required.open ↗
  • METAMASK_PRIVATE_KEYExported from MetaMask. Fund on Tempo Moderato via the Tempo testnet faucet.open ↗
  • TEMPO_RPC_URLhttps://rpc.moderato.tempo.xyz (chainId 42431). Also expose as VITE_TEMPO_RPC_URL.open ↗
  • PRIVY_APP_IDGoogle sign-in + sponsored transactions on Tempo Moderato.open ↗
  • PINATA_JWTPin to IPFS.open ↗
onchain logic

Tempo smart contract

250 ideas use this
kernel
a Solidity contract deployed to Tempo Moderato (testnet) via a MetaMask private key, then verified via Sourcify at contracts.tempo.xyz so source code is readable on the Tempo Explorer
how it drives the UI
a 'verified onchain' badge with the live contract address and a Tempo Explorer link
pay-to-unlock

MPP charge · AlphaUSD

996 ideas use this
kernel
an HTTP endpoint that returns 402 with an MPP WWW-Authenticate challenge; the client pays 0.05 AlphaUSD via a TIP-20 transfer on Tempo Moderato, the server verifies the on-chain Transfer event, then runs the side effect
how it drives the UI
a 'Pay 0.05 USD · Tempo' button that opens Privy, submits the tx, and reveals the unlocked content with a Tempo Explorer /receipt/… link