primer · onchain

Four onchain primitives, demystified.

Every idea in this repo leans on one of four web3 primitives. Each one runs against Monad Testnet (a free, fast EVM testnet) so you can ship a verifiable demo with zero hosting, and Privy sponsors the runtime gas for signed-in users so they never touch MON.

The five secrets

Add these in your Lovable project (Settings → Secrets) before pasting any mega-prompt:

  • METAMASK_PRIVATE_KEYExported from MetaMask. Fund on Monad Testnet via the Monad faucet.open ↗
  • ETHERSCAN_API_KEYEtherscan v2 key — covers MonadScan too. Used by npx hardhat verify.open ↗
  • PRIVY_APP_IDGoogle sign-in + embedded wallet on Monad Testnet.open ↗
  • PINATA_JWTPin to IPFS.open ↗
  • MONAD_RPC_URLOptional. Defaults to https://testnet-rpc.monad.xyz. Swap for a provider endpoint if throttled.