Inspiration

A cable shop needs copper for Friday’s production run. Its supplier wants an answer by noon, but yesterday’s market report is the latest one the owner can get. Buying everything now ties up cash. Waiting on the whole order puts Friday’s run at risk. Could a manufacturer use the information in a prediction market without ever placing a bet?

What Forestock does

Tell Sparrow, “I need copper for Friday’s cable run.” On a phone, the buyer compares delivered supplier quotes on Arc and Base Sepolia, sets a price cap and weekly allowance, and signs the order with a passkey. Sparrow watches the market and can buy the approved quantity in portions while the buyer is away. The buyer can see why a portion is waiting, set the weekly cap to zero to pause new purchases, or approve extra stock separately.

A recorded November 19 Gemini copper contract shows how sizing works. Traders bid 68¢ and asked 72¢ on copper finishing at $5.70/lb or higher, implying a 70% probability. For a 0.03 lb order split into three equal portions with thresholds of 50%, 67% and 84%, two portions qualify early. The third waits. Each still has to fit the supplier price, available escrow and weekly budget.

Outlook brings tech and politics forecasts into the same workflow. An election forecast might prompt a buyer to ask whether a supplier will honor a quote if import rules change. Sparrow explains the possible connection and can draft a material request for the buyer to review.

How I built it

Google Gemini powers the conversation through Vercel AI Gateway. The purchasing worker reads a separate feed from Gemini Prediction Markets and checks the forecast against the signed order. Circle Modular Wallets handles the passkey. A Solidity escrow on Arc Testnet enforces the buyer’s limits, and USDC pays for both the order and Arc gas. For a Base Sepolia supplier, Forestock includes Circle’s forwarding fee when comparing offers and settles through CCTP V2.

A payment you can verify

On November 20, a live copper forecast triggered a separate project-funded test purchase. Sparrow reserved 0.52 test USDC on Arc. When the test supplier accepted, the escrow burned the funds on Arc and the supplier received 0.46 test USDC on Base Sepolia. Forwarding cost 0.06. The suppliers and physical delivery are simulated. The token transfers settled onchain. Arc hold · Arc burn · Base supplier receipt

What I learned and what’s next

A forecast that resolves next month is little help to a buyer who must order by Thursday. Matching the event to the order deadline mattered as much as reading its odds. Comparing delivered prices also mattered: on small purchases, a forwarding fee can wipe out a supplier’s discount. Next I’d connect a real supplier’s inventory and confirmations, then measure delivered cost and on-time availability with a manufacturer.

Built With

  • arc-testnet
  • base-sepolia
  • cctp-v2
  • circle-modular-wallets
  • foundry
  • gemini-prediction-markets
  • google-gemini
  • javascript
  • solidity
  • usdc
  • vercel-ai-gateway
  • viem
Share this project:

Updates

Submission history