1<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/assets/styles-By-qEFUU.css" data-precedence="default"/><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Work+Sans:wght@300;400;500;600;700&display=swap" data-precedence="default"/><title>Build strategy â verifiable onchain demos in one Lovable build</title><meta name="author" content="StreetKode Fam · Indian Krump Festival 14"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta name="twitter:site" content="@Lovable"/><meta name="twitter:title" content="Creative Blockchain â 2,000 web3 hackathon ideas for Lovable"/><meta name="twitter:description" content="A browseable repo of 2,000 mega-prompts that wire MetaMask, BOB Mainnet, BOB Explorer, Privy, Pinata and x402 paywalls into ten creative disciplines. Built during the Creative AI & Quantum Hackathon."/><meta property="og:image" content="https://storage.googleapis.com/gpt-engineer-file-uploads/attachments/og-images/eff616e4-d342-4f0b-97ba-9599666d7536"/><meta name="twitter:image" content="https://storage.googleapis.com/gpt-engineer-file-uploads/attachments/og-images/eff616e4-d342-4f0b-97ba-9599666d7536"/><meta name="description" content="How to ship a BOB Mainnet-verified web3 demo in a single Lovable build: five secrets, one paste, contract live on BOB Explorer, assets pinned on IPFS, sign-in via Privy."/><meta property="og:title" content="Real onchain in one Lovable build"/><meta property="og:description" content="Build-time pattern for Lovable + BOB Mainnet hackathon entries."/><link rel="modulepreload" href="/assets/index-BKTrpUqU.js"/><link rel="modulepreload" href="/assets/chunk--c01j_DQ.js"/><link rel="modulepreload" href="/assets/useRouter-CdkHe4fT.js"/><link rel="modulepreload" href="/assets/link-DM_rPWUx.js"/><link rel="modulepreload" href="/assets/matchContext-CGBEAVfE.js"/><link rel="modulepreload" href="/assets/useStore-CiQC-bbo.js"/><link rel="modulepreload" href="/assets/redirect-DCb_aIiF.js"/><link rel="modulepreload" href="/assets/react-dom-BgfaE1k6.js"/><link rel="modulepreload" href="/assets/jsx-runtime-DxoCn-kY.js"/><link rel="modulepreload" href="/assets/strategy-DUi219Os.js"/><link rel="modulepreload" href="/assets/site-shell-BvDPNbFZ.js"/><link rel="modulepreload" href="/assets/copy-button-B3yD9nno.js"/><link rel="preconnect" href="https://fonts.googleapis.com"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/>
1<script defer src="/~flock.js" data-proxy-url="/~api/analytics"></script>
1</head><body><!--$--><div class="min-h-screen flex flex-col overflow-x-hidden"><header class="sticky top-0 z-40 backdrop-blur-md bg-background/80 border-b border-border"><div class="max-w-7xl mx-auto px-5 sm:px-8 py-3 sm:py-5 flex items-center justify-between gap-3"><a href="/" class="flex items-center gap-2 min-w-0 group"><span class="hidden sm:inline eyebrow shrink-0">Vol. 01</span><span class="font-display text-lg sm:text-2xl truncate text-foreground">Creative <span class="italic text-primary">Blockchain</span></span></a><nav class="hidden md:flex items-center gap-1 text-sm"><a href="/themes" class="px-3 py-1.5 text-[11px] tracking-[0.24em] uppercase font-medium text-muted-foreground hover:text-primary transition-colors duration-500">Themes</a><a href="/showcase" class="px-3 py-1.5 text-[11px] tracking-[0.24em] uppercase font-medium text-muted-foreground hover:text-primary transition-colors duration-500">Showcase</a><a class="px-3 py-1.5 text-[11px] tracking-[0.24em] uppercase font-medium text-muted-foreground hover:text-primary transition-colors duration-500 px-3 py-1.5 text-[11px] tracking-[0.24em] uppercase font-medium text-primary" href="/strategy" data-status="active" aria-current="page">Strategy</a><a href="/quantum-primer" class="px-3 py-1.5 text-[11px] tracking-[0.24em] uppercase font-medium text-muted-foreground hover:text-primary transition-colors duration-500">Primer</a><a href="/about" class="px-3 py-1.5 text-[11px] tracking-[0.24em] uppercase font-medium text-muted-foreground hover:text-primary transition-colors duration-500">About</a><a href="https://creativequantum.lovable.app/" target="_blank" rel="noreferrer" class="ml-3 px-3 py-2 border border-border text-foreground text-[10px] font-semibold tracking-[0.28em] uppercase hover:border-primary/60 hover:text-primary transition-colors duration-500">Hackathon â</a><a href="https://explorer.testnet.bob.io/" target="_blank" rel="noreferrer" class="ml-2 px-4 py-2 bg-primary text-primary-foreground text-[10px] font-semibold tracking-[0.28em] uppercase hover:bg-foreground transition-colors duration-500">BOB Explorer â</a></nav><button type="button" aria-haspopup="dialog" aria-expanded="false" aria-controls="radix-_R_daq_" data-state="closed" aria-label="Open menu" class="md:hidden inline-flex items-center justify-center h-10 w-10 border border-border text-foreground hover:border-primary/60 transition shrink-0"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-menu h-5 w-5" aria-hidden="true"><path d="M4 5h16"></path><path d="M4 12h16"></path><path d="M4 19h16"></path></svg></button></div></header><main class="flex-1 overflow-x-hidden"><article class="max-w-3xl mx-auto px-5 pt-14 pb-20"><div class="eyebrow text-primary mb-4">build strategy · onchain</div><h1 class="font-display text-4xl sm:text-5xl md:text-6xl font-bold leading-[0.95] tracking-tight text-foreground">Real onchain, <span class="text-primary italic">five secrets</span>, one build.</h1><p class="mt-6 text-lg text-muted-foreground leading-relaxed font-light">Every mega-prompt in this repo uses the same pattern, because it's the only pattern that lets a Lovable account ship a verifiable BOB Mainnet demo in one shot.</p><section class="mt-10 p-6 border border-primary/30 bg-card"><h2 class="font-display text-xl font-semibold text-foreground italic">Why BOB Mainnet and not mainnet?</h2><p class="mt-3 text-sm text-muted-foreground leading-relaxed font-light">BOB Mainnet is a real Ethereum testnet â the same EVM, the same BOB Explorer UI, the same wallets â but funded by a free faucet. Every contract you deploy is publicly inspectable, but you never spend real ETH and your demo can't accidentally drain a user. Move to mainnet after the hackathon by swapping the RPC.</p></section><section class="mt-10"><h2 class="font-display text-2xl font-semibold mb-3 text-foreground italic">The recipe</h2><div class="flex items-baseline justify-between mb-2"><span class="eyebrow text-primary">recipe</span><button class="inline-flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground text-[10px] tracking-[0.28em] uppercase font-semibold hover:bg-foreground transition-colors duration-500">Copy recipe</button></div><pre class="whitespace-pre-wrap break-words [overflow-wrap:anywhere] font-mono text-[12px] sm:text-[13px] leading-relaxed p-4 sm:p-5 max-w-full overflow-x-hidden border border-border bg-card text-foreground
1/90"># 1. In your Lovable project, add five secrets (Settings -> Secrets): 2METAMASK_PRIVATE_KEY=0x... 3(none needed â Sourcify + BOB Explorer verify automatically)=... 4PRIVY_APP_ID=... 5PINATA_JWT=eyJhbGciOi... 6ROOTSTOCK_TESTNET_RPC_URL=https://... # optional, a public RPC is used otherwise 7 8# 2. Fund the MetaMask account on BOB Mainnet: 9open https://faucet.bob.io 10 11# 3. Copy a mega-prompt from this repo into Lovable. One paste: 12# - scaffolds the React app 13# - writes the Solidity contract (with hackathon credit in NatSpec) 14# - deploys to BOB Mainnet and verifies on BOB Explorer 15# - wires Privy social login + sponsored tx 16# - pins generated assets to IPFS via Pinata 17# - exposes the contract address + BOB Explorer link in the UI 18 19# 4. Open the live BOB Explorer link. Your demo is provably onchain. 20</pre></section><section class="mt-10"><h2 class="font-display text-2xl font-semibold mb-3 text-foreground italic">1. The contract â credit baked in</h2><p class="text-sm text-muted-foreground mb-3 font-light">Every Solidity file deployed from a Creative Blockchain prompt MUST carry the hackathon credit in NatSpec, so provenance lives onchain alongside the bytecode.</p><div class="flex items-baseline justify-between mb-2"><span class="eyebrow text-primary">contracts/Provenance.sol</span><button class="inline-flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground text-[10px] tracking-[0.28em] uppercase font-semibold hover:bg-foreground transition-colors duration-500">Copy</button></div><pre class="whitespace-pre-wrap break-words [overflow-wrap:anywhere] font-mono text-[11px] sm:text-[12px] leading-relaxed p-4 sm:p-5 max-w-full overflow-x-hidden border border-border bg-card text-foreground/90">// contracts/Provenance.sol â every contract carries the hackathon credit in NatSpec 21// SPDX-License-Identifier: MIT 22pragma solidity ^0.8.24; 23 24/// @title Provenance 25/// @notice Built during the Creative AI & Quantum Hackathon 26/// @notice organised by StreetKode Fam during Indian Krump Festival 14 27contract Provenance { 28 event Logged(address indexed author, string cid, uint256 at); 29 30 function log(string calldata cid) external { 31 emit Logged(msg.sender, cid, block.timestamp); 32 } 33} 34</pre></section><section class="mt-10"><h2 class="font-display text-2xl font-semibold mb-3 text-foreground italic">2. Deploy + verify on BOB Explorer</h2><div class="flex items-baseline justify-between mb-2"><span class="eyebrow text-primary">scripts/deploy.ts</span><button class="inline-flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground text-[10px] tracking-[0.28em] uppercase font-semibold hover:bg-foreground transition-colors duration-500">Copy</button></div><pre class="whitespace-pre-wrap break-words [overflow-wrap:anywhere] font-mono text-[11px] sm:text-[12px] leading-relaxed p-4 sm:p-5 max-w-full overflow-x-hidden border border-border bg-card text-foreground/90">// scripts/deploy.ts â reads METAMASK_PRIVATE_KEY + (none needed â Sourcify + BOB Explorer verify automatically) from process.env 35import { ethers, run } from "hardhat"; 36 37async function main() { 38 const F = await ethers.getContractFactory("Provenance"); 39 const c = await F.deploy(); 40 await c.waitForDeployment(); 41 const addr = await c.getAddress(); 42 console.log("deployed:", addr); 43 44 // verify on BOB Explorer 45 await run("verify:verify", { address: addr, constructorArguments: [] }); 46} 47main(); 48</pre></section><section class="mt-10"><h2 class="font-display text-2xl font-semibold mb-3 text-foreground italic">3. Pin assets to IPFS via Pinata</h2><div class="flex items-baseline justify-between mb-2"><span class="eyebrow text-primary">src/lib/pinata.ts</span><button class="inline-flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground text-[10px] tracking-[0.28em] uppercase font-semibold hover:bg-foreground transition-colors duration-500">Copy</button></div><pre class="whitespace-pre-wrap break-words [overflow-wrap:anywhere] font-mono text-[11px] sm:text-[12px] leading-relaxed p-4 sm:p-5 max-w-full overflow-x-hidden border border-border bg-card text-foreground
48/90">// src/lib/pinata.ts â pin a Blob to IPFS via Pinata JWT 49export async function pinToIPFS(file: Blob, name = "artifact") { 50 const fd = new FormData(); 51 fd.append("file", file, name); 52 const r = await fetch("https://api.pinata.cloud/pinning/pinFileToIPFS", { 53 method: "POST", 54 headers: { Authorization: `Bearer ${process.env.PINATA_JWT}` }, 55 body: fd, 56 }); 57 const { IpfsHash } = await r.json(); 58 return IpfsHash as string; // the CID 59} 60</pre></section><section class="mt-10"><h2 class="font-display text-2xl font-semibold mb-3 text-foreground italic">4. Sign in with Google via Privy</h2><div class="flex items-baseline justify-between mb-2"><span class="eyebrow text-primary">src/main.tsx</span><button class="inline-flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground text-[10px] tracking-[0.28em] uppercase font-semibold hover:bg-foreground transition-colors duration-500">Copy</button></div><pre class="whitespace-pre-wrap break-words [overflow-wrap:anywhere] font-mono text-[11px] sm:text-[12px] leading-relaxed p-4 sm:p-5 max-w-full overflow-x-hidden border border-border bg-card text-foreground/90">// src/main.tsx â Privy social login + faucet-funded ETH transactions 61import { PrivyProvider } from "@privy-io/react-auth"; 62 63<PrivyProvider 64 appId={import.meta.env.VITE_PRIVY_APP_ID} 65 config={{ 66 loginMethods: ["google", "email"], 67 embeddedWallets: { createOnLogin: "users-without-wallets" }, 68 defaultChain: { id: 31, name: "BOB Mainnet" }, 69 }} 70> 71 <App /> 72</PrivyProvider> 73</pre></section><section class="mt-10 p-6 border border-border bg-card"><h2 class="font-display text-xl font-semibold text-foreground italic">Hackathon rules of thumb</h2><ul class="mt-3 space-y-2 text-sm text-muted-foreground font-light"><li>· One mega-prompt = one build message. Don't iterate the architecture, iterate the UI.</li><li>· Always show the live BOB Explorer link in the UI â that's your proof.</li><li>· Use Privy sponsored tx so judges don't need a wallet to try the demo.</li><li>· Pin every user-generated asset to IPFS the moment it's created.</li><li>· Add a "Built during the Creative AI & Quantum Hackathon â StreetKode Fam · Indian Krump Festival 14" line to your footer.</li></ul></section><div class="mt-10 flex flex-wrap gap-3"><a href="/themes" class="px-5 py-2.5 bg-primary text-primary-foreground font-semibold hover:bg-foreground transition">Pick an idea â</a><a href="/quantum-primer" class="px-5 py-2.5 border border-primary/40 text-foreground hover:bg-primary hover:text-primary-foreground transition">Blockchain primer</a></div></article></main><footer class="border-t border-border mt-24"><div class="max-w-7xl mx-auto px-5 sm:px-8 py-10 flex flex-col gap-3 text-[10px] tracking-[0.32em] uppercase text-muted-foreground"><div class="flex flex-wrap items-center justify-between gap-4"><span>Vol. 01 · 1,000 entries · 10 disciplines</span><span class="font-display normal-case tracking-normal text-base italic text-primary">Lovable à BOB Mainnet</span><span>MetaMask · Privy · Pinata · MMXXVI</span></div><div class="border-t border-border/60 pt-3 normal-case tracking-normal text-[11px] font-light leading-relaxed text-muted-foreground/80">Built during the Creative AI & Quantum Hackathon â organised by<!-- --> <span class="text-primary">StreetKode Fam</span> during Indian Krump Festival 14.</div></div></footer></div>
73<script>(function(a,f){let l;try{l=JSON.parse(sessionStorage.getItem(a)||"{}")}catch{return}const n=l?.[f||history.state?.__TSR_key];let c=!1;for(const t in n){const e=n[t],o=e?.scrollX,s=e?.scrollY;if(Number.isFinite(o)&&Number.isFinite(s)){if(t==="window")scrollTo(o,s),c=!0;else if(t)try{const r=document.querySelector(t);r&&(r.scrollLeft=o,r.scrollTop=s)}catch{}}}if(c)return;const i=location.hash.slice(1);if(i){const t=history.state?.__hashScrollIntoViewOptions??!0;if(t){const e=document.getElementById(i);e&&e.scrollIntoView(t)}return}scrollTo(0,0)})("tsr-scroll-restoration-v1_3");document.currentScript.remove()</script>
73<!--/$-->
73<script class="$tsr" id="$tsr-stream-barrier">(self.$R=self.$R||{})["tsr"]=[];self.$_TSR={h(){this.hydrated=!0,this.c()},e(){this.streamEnded=!0,this.c()},c(){this.hydrated&&this.streamEnded&&(delete self.$_TSR,delete self.$R.tsr)},p(e){this.initialized?e():this.buffer.push(e)},buffer:[]};$_TSR.router=($R=>$R[0]={manifest:$R[1]={routes:$R[2]={__root__:$R[3]={preloads:$R[4]=["/assets/index-BKTrpUqU.js","/assets/chunk--c01j_DQ.js","/assets/useRouter-CdkHe4fT.js","/assets/link-DM_rPWUx.js","/assets/matchContext-CGBEAVfE.js","/assets/useStore-CiQC-bbo.js","/assets/redirect-DCb_aIiF.js","/assets/react-dom-BgfaE1k6.js","/assets/jsx-runtime-DxoCn-kY.js"],scripts:$R[5]=[$R[6]={attrs:$R[7]={type:"module",async:!0,src:"/assets/index-BKTrpUqU.js"}}]},"/strategy":$R[8]={preloads:$R[9]=["/assets/strategy-DUi219Os.js","/assets/site-shell-BvDPNbFZ.js","/assets/copy-button-B3yD9nno.js"]}}},matches:$R[10]=[$R[11]={i:"__root__�",u:1790997861987,s:"success",ssr:!0},$R[12]={i:"�strategy�strategy",u:1790997861987,s:"success",ssr:!0}],lastMatchId:"�strategy�strategy"})($R["tsr"]);$_TSR.e();document.currentScript.remove()</script>
73<script type="module" async="" src="/assets/index-BKTrpUqU.js"></script>
73</body></html>
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.