DEV Community

Cover image for What a Farcaster mini app can and can't do inside Quilcast
borodutch.eth 💎🤲
borodutch.eth 💎🤲

Posted on Edited on Originally published at blog.quilcast.com

What a Farcaster mini app can and can't do inside Quilcast

Every Farcaster mini app running inside Quilcast stays inside a sandboxed iframe on its own origin and only gets access to 26 explicit calls; anything else throws an error. Wallet requests pass through a second gate that blocks transactions to Farcaster's account contracts, signatures logging you into Farcaster or Warpcast, and any address other than the one you connected.

I audited commit 94dd385 of the Quilcast repository (version 0.45.10, 2026-11-01) and ran its guard test suite plus manual checks on Node 22.23.4. I didn't open a live mini app in a browser for this write-up; every detail below comes from the code and those test runs.

What is a Farcaster mini app host?

A mini app is just a web page embedded inside a Farcaster client. It talks to the client over @farcaster/miniapp-sdk, passing messages upward to sign in, open a profile or send a transaction. The client embedding it is the host, and the host decides which messages go through.

In Quilcast, tapping a mini app card in a cast or pasting a URL under Mini apps opens it inside the app. You can keep several open at once: one stays on screen while the rest sit live in a dock. Mini apps landed in version 0.10.0 on 2026-10-21, a day after the initial commit, and the guards below piled on right after.

How does the iframe sandbox work?

Each mini app runs inside an iframe with sandbox="allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox". Because it stays on its own origin with no top-level navigation, it can't touch Quilcast's DOM. Non-https URLs are rejected outright. The allow attribute starts limited to clipboard-write; web-share. Camera and mic permissions only get added after you approve them for that app, triggering a single iframe reload so the browser picks them up, and "Take back camera and mic" in the app menu revokes them again.

Incoming messages have to match the exact contentWindow of an open app, come from the origin that app launched on, and target a single-segment call path. Because the SDK uses Comlink, arguments are stripped down to plain values: any proxy or MessagePort turns into undefined.

Which SDK calls does Quilcast answer?

In src/miniapp.tsx, a table named calls lists 26 allowed methods; anything outside it gets "Quilcast doesn't support ." That covers ready, close, openUrl, openMiniApp, viewCast, viewProfile, composeCast, signIn, addMiniApp, primary and back buttons, haptics, camera and mic, Ethereum and Solana wallet providers, plus viewToken, sendToken and swapToken.

Arguments get validated before anything runs. viewCast expects a 40-character hex hash, viewProfile expects a positive safe integer FID, and primary button labels truncate at 40 characters. Calling signManifest to sign a Farcaster domain manifest immediately returns rejected_by_user without bothering you.

Interactive prompts also require focus. Signing, sending, opening external links or adding an app only work for the visible app on screen; background apps throw Open <app> to continue so a docked tab can't ambush you with a prompt while you're using something else. Each app is also limited to one open prompt at a time.

What can a mini app do with my wallet?

Ethereum wallet access is where things get dangerous fast. src/guard.ts splits RPC calls into three allowlists: 16 read methods like eth_call, eth_getBalance and eth_getLogs hit a public RPC for the app's chain silently; 5 signing methods (personal_sign, eth_signTypedData_v4, eth_sendTransaction, wallet_sendCalls and wallet_watchAsset) always hand off to your wallet for approval; and 2 wallet reads go through. Blind hashes (eth_sign), eth_signTransaction and older typed-data versions aren't listed, so they fail with error code 4200.

Because your wallet only sees quilcast.com as the caller, Quilcast has to run per-app checks itself before forwarding anything. checkWallet handles that filter. Running it on 2026-11-01 against a connected address and a mini app on app.example gave these results:

Request from the app Result
Send a transaction to Farcaster's IdRegistry Refused, 4100: "Mini apps can't send transactions to Farcaster's account contracts."
personal_sign for a different address Refused, 4100: "That address isn't the connected one."
Sign-in message for warpcast.com Refused, 4100: "Mini apps can't sign you in to warpcast.com."
A message containing farcaster://fid/ Refused, 4100: "Mini apps can't ask for Farcaster account signatures."
Sign-in message for other.xyz Allowed only after Quilcast asks you whether to sign in to that other site
A plain transaction to an unrelated address Passed on to your wallet, which asks you

The blocked contracts are all eight Farcaster core contracts on Optimism: IdRegistry, IdGateway, KeyRegistry, KeyGateway, StorageRegistry, Bundler, SignedKeyRequestValidator and RecoveryProxy. Those control account ownership, signer keys and recovery, so a mini app has zero business touching them. Typed data whose domain name contains "farcaster" gets blocked too.

The sign-in guard stops a malicious app from logging you into another site. Sign-In With Ethereum messages name their target domain: if it matches the app's own host, it passes; if it targets farcaster.xyz, warpcast.com or quilcast.com, it's blocked; for any other domain, Quilcast asks you first. Solana sign-ins go through the same check.

How does Quilcast warn me about approvals and permits?

Prompts translate raw calldata into plain English before you sign. tokenCall inspects the first four bytes of transaction data for approve, increaseAllowance, setApprovalForAll, Permit2's approve, transfer, transferFrom and both safeTransferFrom variants, then decodes the parameters. Passing a max-uint approve flagged it as an approval past the 2^128 cutoff Quilcast treats as unlimited. typedRisk does the same for signatures, turning Permit or Permit2 payloads into a named spender warning and Seaport orders into a listing notice, showing "this lets someone else take tokens" or "this puts NFTs up for sale" instead of raw hex.

Running node --test src/guard.test.ts passed 6 of 6 tests, covering blocked Farcaster signatures, cross-site sign-in prompts and decoded token calls.

Is Quilcast itself a mini app?

Yes, and it takes almost no code. quilcast.com/.well-known/farcaster.json returns 200 with a signed account association and a home URL of https://quilcast.com/, and the page serves fc:miniapp and fc:frame meta tags so links render an "Open in Quilcast" card inside Farcaster and Base clients. Inside those clients, src/inapp.ts (18 lines) marks the page ready, wires up the host's back button, exposes the host wallet as window.ethereum and opens external links through the host because webviews block new windows. Everyone else never downloads that SDK chunk.

Since 0.28.1, Quilcast can even open a Quilcast link as a mini app inside itself, and 0.28.2 made nesting work to any depth. Chrome refuses to embed a frame with the same URL as an ancestor, so each nested frame gets a unique ?in= parameter.

What I would check in any mini app host

If you're building a host or picking a client, check five things against its source:

  1. Does it enforce a strict call allowlist, or blindly forward whatever an app asks for?
  2. Does it verify both the iframe window and origin on every message?
  3. Does it block contract calls and signatures aimed at the Farcaster account itself?
  4. Do approval prompts decode token calls and permits into readable warnings, or dump raw hex?
  5. Can a background mini app pop up a prompt over the active screen?

Quilcast is open source, so you can read src/miniapp.tsx and src/guard.ts yourself, or try opening a mini app from any cast in Quilcast on the web, iPhone or Android.

Source read and tests run on 2026-11-01 with Quilcast 0.45.10 (commit 94dd385), Node 22.23.4 and the dependencies' latest versions at install time. The mini app SDK version the repository declares is ^0.3.0.

Top comments (0)