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:One-time setup
1
Get an EVM wallet
Any tooling — 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.
viem, MetaMask, Coinbase, hardware wallet. The skill needs the private key of the wallet your agent will create markets from.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
Usage
- Check
BF_AGENT_KEYis set - Verify the wallet is approved
- Show you a confirmation summary
- Wait for your “yes” before spending USDC
- POST to BlockForecast with x402 payment
- Return the live market URL
Dry run
To verify your setup without spending USDC: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_KEYlike 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 positionsbf-list-markets— search BlockForecast markets by categorybf-trade— place a trade on an existing market
Source + support
- Skill source: github.com/gr8estman/blockforecast-skills
- Issues / feature requests: open one on GitHub
- Email: support@blockforecast.io