Interact with the AgentMarket protocol on Base Sepolia to create, trade, provide liquidity, and resolve USDC-settled YES/NO prediction markets.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install agent-market或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install agent-market⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/agent-market/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
Interact with the AgentMarket prediction market protocol on Base Sepolia. Create markets, trade YES/NO positions, provide liquidity, and resolve outcomes — all settled in USDC.
Source code & docs: https://github.com/humanjesse/AgentMarket
| Contract | Address | |----------|---------| | MarketFactory | 0xDd553bb9dfbB3F4aa3eA9509bd58386207c98598 | | USDC | 0x036CbD53842c5426634e7929541eC2318f3dCF7e |
The MarketFactory is the single entry point. It deploys all child contracts (Market, AMM, Oracle, position tokens) when you create a market. You only need the factory address to get started.
Required environment variables:
AGENT_MARKET_FACTORY_ADDRESS: The deployed MarketFactory contract address (default: 0xDd553bb9dfbB3F4aa3eA9509bd58386207c98598)USDC_ADDRESS: USDC token address on the network (default: 0x036CbD53842c5426634e7929541eC2318f3dCF7e)RPC_URL: RPC endpoint (default: https://sepolia.base.org)WALLET_PRIVATE_KEY: Your wallet private keyYour wallet needs:
1. market_list() — Browse existing markets
2. market_buy_yes({ marketAddress, amount: 5 }) — Bet 5 USDC on YES
3. market_propose_outcome({ marketAddress, outcome: true }) — Propose YES won (posts bond)
4. (wait for dispute window to close)
5. market_finalize({ marketAddress }) — Finalize the outcome
6. market_claim({ marketAddress }) — Collect your winnings
market_listList active prediction markets with prices and oracle status.
limit (number, optional): Number of markets to return (default: 10)offset (number, optional): Offset for paginationmarket_getGet full details for a specific market including AMM prices, oracle state, and claim preview.
marketAddress (string): The market contract addressmarket_createCreate a new YES/NO prediction market. Costs 2 USDC (1 fee + 1 initial liquidity). You receive LP tokens for the initial liquidity.
question (string): The question to be resolved (should have a clear YES/NO answer, max 256 characters)arbitrator (string): Address of the fallback arbitrator for disputed outcomesdeadlineDays (number, optional): Emergency withdrawal deadline in days (default: 7, max: 365)market_buy_yesBuy YES shares (betting the event will happen). Minimum 2 USDC (a 0.1% protocol fee is deducted before the swap, so the post-fee amount must be at least 1 USDC).
marketAddress (string): The market to bet onamount (number): Amount of USDC to spendmarket_buy_noBuy NO shares (betting the event will not happen). Minimum 2 USDC (a 0.1% protocol fee is deducted before the swap, so the post-fee amount must be at least 1 USDC).
marketAddress (string): The market to bet onamount (number): Amount of USDC to spendmarket_sell_yesSell YES shares back for USDC.
marketAddress (string): The marketamount (number): Amount of YES tokens to sellmarket_sell_noSell NO shares back for USDC.
marketAddress (string): The marketamount (number): Amount of NO tokens to sellmarket_claimClaim winnings from a resolved market. Burns your winning tokens and returns your proportional share of the pool.
marketAddress (string): The resolved marketLiquidity providers (LPs) deposit USDC to deepen the AMM pool, earning trading fees (0.3% per trade plus 0.1% protocol fee). You receive LP tokens representing your share.
market_add_liquidityAdd USDC liquidity to a market's AMM. Minimum 1 USDC.
marketAddress (string): The marketamount (number): Amount of USDC to depositmarket_remove_liquidityRemove liquidity before resolution. Returns proportional YES + NO tokens (not USDC directly — you can sell or merge these).
marketAddress (string): The marketshares (number): LP shares to burnmarket_lp_claim_winningsAfter a market resolves, call this once to convert the AMM's winning tokens into USDC. Must be called before LPs can withdraw.
marketAddress (string): The resolved marketmarket_lp_withdrawWithdraw your share of USDC from a resolved market's AMM. Requires market_lp_claim_winnings to have been called first.
marketAddress (string): The resolved marketshares (number): LP shares to burnResolution follows: propose -> (wait for dispute window) -> finalize. If disputed: arbitrate.
market_propose_outcomePropose how a market should resolve. Requires posting a USDC bond (default 5 USDC, doubles after each dispute reset).
marketAddress (string): The market to resolveoutcome (boolean): true for YES, false for NOmarket_finalizeFinalize an unchallenged proposal after the dispute window closes. Anyone can call this. Proposer gets their bond back.
marketAddress (string): The market to finalizemarket_disputeChallenge a proposed outcome by posting a counter-bond (matches the current bond amount). Sends the dispute to the arbitrator.
marketAddress (string): The market with the proposal to disputemarket_arbitrateMake the final ruling on a disputed market. Only the designated arbitrator can call this. Winner of the dispute gets both bonds.
marketAddress (string): The disputed marketoutcome (boolean): true for YES, false for NOmarket_reset_disputeReset a stuck dispute after 7 days if the arbitrator hasn't acted. Returns both bonds and reopens the oracle for a new proposal. Bond amount doubles for the next round.
marketAddress (string): The market with the stuck disputemarket_reset_proposalReset a stuck proposal after 3 days (e.g. if the proposer went inactive). Returns the proposer's bond.
marketAddress (string): The market with the stuck proposalmarket_emergency_withdrawWithdraw USDC from a market where the oracle failed to resolve before the deadline. Burns all your YES+NO tokens and returns a proportional share of the pool at a blended rate.
marketAddress (string): The expired marketmarket_arbitrator_checkScan all markets to find any where you are the designated arbitrator and action is needed.
| Fee | Amount | When | |-----|--------|------| | Market creation | 1 USDC | Paid to protocol on market_create | | Initial liquidity | 1 USDC | Seeded into AMM on market_create (you get LP tokens) | | Protocol fee | 0.1% | Deducted from USDC on buy/sell | | AMM trading fee | 0.3% | Stays in pool (benefits LPs) |
Creating markets: You pay 2 USDC (1 fee + 1 liquidity) and receive LP tokens. Ask clear, verifiable questions with definitive YES/NO outcomes and reasonable deadlines.
...
安装 Agent Market 后,可以对 AI 说这些话来触发它
Help me get started with Agent Market
Explains what Agent Market does, walks through the setup, and runs a quick demo based on your current project
Use Agent Market to interact with the AgentMarket protocol on Base Sepolia to create, t...
Invokes Agent Market with the right parameters and returns the result directly in the conversation
What can I do with Agent Market in my finance & investment workflow?
Lists the top use cases for Agent Market, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/agent-market/ 目录(个人级,所有项目可用),或 .claude/skills/agent-market/(项目级)。重启 AI 客户端后,用 /agent-market 主动调用,或让 AI 根据上下文自动发现并使用。
Agent Market 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Agent Market 可免费安装使用。请查阅仓库了解许可证信息。
Interact with the AgentMarket protocol on Base Sepolia to create, trade, provide liquidity, and resolve USDC-settled YES/NO prediction markets.
Agent Market 属于「Finance & Investment」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my finance & investment tasks using Agent Market
Identifies repetitive steps in your workflow and sets up Agent Market to handle them automatically