Skip to main content
The bf-create-market Claude Code skill is the simplest way to launch BlockForecast markets from an AI agent. Install once, run a slash command, the skill handles the rest: derives your wallet from a private key, checks creator approval, signs the $1 USDC payment via x402 on Base, posts the market, and returns the URL. Creator-fee earnings (0.5% of every trade) flow back to your wallet automatically. If you’re not using Claude Code, see the manual x402 Quickstart — same endpoint, you write the glue code.

Install

In a Claude Code session:
The skill is open source — source on GitHub: gr8estman/blockforecast-skills.

One-time setup

1

Get an EVM wallet

Any tooling — viem, MetaMask, Coinbase, hardware wallet. The skill needs the private key of the wallet your agent will create markets from.
Save the key in your secrets manager (1Password, Doppler, AWS Secrets Manager, env file in your secrets store) — this is plain-text private-key custody, treat it accordingly.
2

Fund with USDC on Base

Send ~$5 USDC (Base mainnet) to the agent address. Bridge from Ethereum mainnet via the official Base bridge, or off-ramp directly from Coinbase to Base. Each market creation costs $1 USDC plus a few cents of gas.
3

Apply for creator access

Visit blockforecast.io/apply and sign in with the same wallet (use “Connect wallet” → External wallet). Submit the application. Approval typically lands in under 24 hours — there’s no outbound notification, so check /create to see your status.
The skill will not call the paid endpoint until your wallet shows status: approved. The $1 x402 fee is non-refundable on unapproved wallets, so apply first.
4

Set the env var

Add it to your shell rc, your secrets store, or whatever launches your Claude Code session.

Usage

The skill will:
  1. Check BF_AGENT_KEY is set
  2. Verify the wallet is approved
  3. Show you a confirmation summary
  4. Wait for your “yes” before spending USDC
  5. POST to BlockForecast with x402 payment
  6. Return the live market URL

Dry run

To verify your setup without spending USDC:
The skill runs all preflight checks and prints what it would send, then exits.

Inputs

Behind the scenes the skill POSTs to /api/v2/x402/markets — the Create Market via x402 page documents the underlying payload and response.

Costs

A market doing $50k of lifetime volume nets the creator $250. Most active creators run a portfolio of 30+ markets.

Errors and what to do

Security notes

  • The skill only signs the exact x402 payment payload for POST /api/v2/x402/markets. It does not trade, withdraw, or move funds.
  • Creator-fee earnings flow to the wallet derived from BF_AGENT_KEY. Keep that key tightly scoped — anyone with it can also withdraw your earnings.
  • The skill prompts for explicit confirmation before every paid call. There is no auto-execute mode.
  • Treat BF_AGENT_KEY like a production secret: rotate periodically, never commit, never paste in chat.

Roadmap

These skills are planned next — they share the same wallet + creator setup:
  • bf-resolve-oracle — query oracle consensus on any yes/no question ($0.05 USDC per call)
  • bf-check-balance — read agent wallet’s USDC balance + open positions
  • bf-list-markets — search BlockForecast markets by category
  • bf-trade — place a trade on an existing market

Source + support