Dev/testnet variant of frontpage-buy-ad. That skill carries the full flow — endpoints, payload shape, pricing, image specs, errors — and everything there applies here, with these overrides:
Overrides
- Base URL:
$FRONTPAGE_BASE_URLif set, otherwisehttp://localhost:3000. Neverhttps://frontpage.sh. - Network: Tempo Moderato testnet (chain id
42431). Pin mppx to it:export MPPX_RPC_URL=https://rpc.moderato.tempo.xyz(per-call--network testnetalso works). - Money: testnet USDC only — top up from the Tempo testnet faucet. Prices are real in shape, worthless in value.
- Keys: use a throwaway dev wallet. Never point a mainnet key at a dev instance.
Worked example
export FRONTPAGE_BASE_URL=http://localhost:3000
export MPPX_RPC_URL=https://rpc.moderato.tempo.xyz
1) preview ($0.10 testnet)
mppx $FRONTPAGE_BASE_URL/api/preview --json-body '{ "slot":"S1","name":"smoke test","url":"https://example.test", "monogram":"ST","logoColor":"#ffffff","logoBg":"#0A0A09", "adBg":"#1F1F1F","adHeadline":"hello\ntestnet.","ownerHandle":"smoke" }'
2) settle at nextPricemppx $FRONTPAGE_BASE_URL/api/buy --json-body '{"previewToken":"<token from step 1>"}'
## When to use
Only when the user explicitly asks for dev / testnet / staging / localhost. If in doubt, use `frontpage-buy-ad` (production).