primer · onchain

Four onchain primitives, demystified.

Every idea in this repo leans on one of four Aptos primitives. Each one runs against Aptos Testnet (a free, real network running the Move VM) so you can ship a verifiable demo with zero hosting and gas measured in fractions of a cent.

The secrets

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

  • APTOS_DEPLOYER_PRIVATE_KEYExported from a Petra 'classic' account with the network set to Testnet. Fund it at the Aptos faucet.open ↗
  • APTOS_RPC_URLAlchemy Aptos Testnet fullnode. Public fullnodes throttle under load.open ↗
  • PRIVY_APP_IDGoogle sign-in + Aptos embedded wallet.open ↗
  • PRIVY_APP_SECRETServer-side raw signing — Aptos can't be signed in the browser.open ↗
  • PINATA_JWTPin to IPFS.open ↗
  • Aptos CLINeeded once, to publish the Move package. No Hardhat, no verify step.
x402 native

Aptos Testnet + x402 paywall

996 ideas use this
kernel
an x402 v2 paywall metering access at 0.01 USDC per call — the payer submits a Circle USDC fungible-asset transfer on Aptos Testnet and a self-hosted facilitator verifies the committed transaction
how it drives the UI
a 'pay 0.01 USDC to unlock' button that returns the Aptos tx hash and links straight to Aptos Explorer