当前位置: 首页 > Skill >

Predictfunclaw

Predictfunclaw

Predictfunclaw

Predict.fun 技能,采用 PolyClaw 风格 CLI,用于市场、钱包充值、交易、持仓与对冲。

0.1.34 2026.11.27 115
获取Skill文件查看使用说明
作 者:沈知 许可证: 更新时间:2026.11.27
本文目录展开

PredictClaw

PredictClaw is the predict.fun-native OpenClaw skill for browsing markets, checking wallet readiness, viewing funding guidance, withdrawing funds, placing buys, inspecting positions, and scanning hedge opportunities.

PredictClaw's version source of truth is the repository-root pyproject.toml. When checking GitHub or packaging metadata, use this repository root directly.

Install

ClawHub / packaged install

clawhub install predictclaw
cd ~/.openclaw/skills/predictclaw
uv sync
cp template.env .env

The installed skill directory ~/.openclaw/skills/predictclaw is the only canonical user config root. In OpenClaw manifests and examples, this same installed path may appear as {baseDir}. Any repository checkout or workspace copy is a development-only artifact, not a user config root.

Manual install

  1. Copy or symlink this repository into ~/.openclaw/skills/predictclaw/
  2. From the installed skill directory, run:
cd {baseDir} && uv sync
cd {baseDir} && cp template.env .env

How configuration actually works

PredictClaw only reads standard environment variables. The supported, tested inputs are:

  • the process environment, for example export PREDICT_ENV=testnet
  • a local ~/.openclaw/skills/predictclaw/.env file, auto-loaded by scripts/predictclaw.py when present; in manifests and examples, that same installed path may appear as {baseDir}

If both are present, exported environment variables win and .env only fills missing values.

If your OpenClaw host version injects environment variables into the skill process, that also works because PredictClaw receives normal env vars either way. Older docs used skills.entries.predictclaw.env; treat that as a host-version-specific convenience, not the canonical PredictClaw config surface.

The SKILL frontmatter metadata now declares the external runtime and conditionally used env surfaces so ClawHub users can review them before installation. The mode-specific requirements are still documented below and enforced by the runtime config validator; not every listed variable is required at the same time.

Mode-first onboarding

Choose the mode first, then show only the minimum fields for that mode.

  • read-only
    • Browsing only.
    • Minimum fields: PREDICT_ENV, PREDICT_WALLET_MODE, and PREDICT_API_KEY for mainnet reads.
  • eoa
    • Direct signer trading.
    • Minimum fields: PREDICT_ENV, PREDICT_WALLET_MODE=eoa, PREDICT_API_KEY, PREDICT_EOA_PRIVATE_KEY.
  • predict-account + ERC_MANDATED_*
    • Recommended funded-trading path.
    • Ask first: Do you already have a vault?
    • Have a vault -> minimum fields: PREDICT_ENV, PREDICT_WALLET_MODE=predict-account, PREDICT_API_KEY, PREDICT_ACCOUNT_ADDRESS, PREDICT_PRIVY_PRIVATE_KEY, ERC_MANDATED_MCP_COMMAND, ERC_MANDATED_CHAIN_ID, ERC_MANDATED_VAULT_ADDRESS, optional ERC_MANDATED_CONTRACT_VERSION.
    • Need a vault -> deploy or redeploy a vault first with the pure mandated-vault bootstrap path, then return to overlay.
  • pure mandated-vault
    • Recommended governance/control-plane path.
    • Minimum fields: PREDICT_ENV, PREDICT_WALLET_MODE=mandated-vault, PREDICT_API_KEY, PREDICT_EOA_PRIVATE_KEY, ERC_MANDATED_MCP_COMMAND, ERC_MANDATED_CHAIN_ID.

Advanced authority / executor / bootstrap private keys are follow-up fields, not default first-screen requirements. Only surface them when the selected workflow really executes vault-side actions. Do not treat the full derivation tuple as the primary first-step answer for overlay onboarding when the user already has a deployed vault.

Mode reminders

  1. Run uv sync in the installed skill directory.
  2. Pick a bootstrap file:
    • template.env -> secret-free local fixture bootstrap
    • template.readonly.env -> live read-only market reads
    • template.eoa.env -> direct private-key trading
    • template.predict-account.env -> recommended funded-trading path (Predict Account trades, Vault can fund it)
    • template.mandated-vault.env -> recommended governance/control-plane path for advanced pure vault workflows
  3. Copy the chosen file to .env inside ~/.openclaw/skills/predictclaw/.
  4. Fill only the variables required for that mode.
  5. Verify with:
cd {baseDir} && uv run python scripts/predictclaw.py --help
cd {baseDir} && uv run python scripts/predictclaw.py markets trending

wallet status requires signer configuration. For read-only, start with markets trending or market <id> --json instead.

mainnet market reads require PREDICT_API_KEY. Non-mainnet usage remains explicit-only and is no longer the packaged default.

test-fixture only knows the bundled local market IDs (123, 456, 789, 101, 202). Switch to the live read-only template before querying a real production market ID.

Recommended operating model

  • For user-facing funded trading, recommend predict-account + ERC_MANDATED_*.
  • In that model, Predict Account remains the trading identity and deposit address, while Vault acts as the funding/control plane.
  • For governance-first or bootstrap-only workflows, recommend pure mandated-vault instead.
  • Do not present pure mandated-vault as a co-equal default for trading because it still fails closed on buy / positions / hedge flows.
  • For overlay onboarding, ask whether the user already has a vault before asking for advanced vault metadata.

For signer-backed modes, the next verification step is:

cd {baseDir} && uv run python scripts/predictclaw.py wallet status --json
cd {baseDir} && uv run python scripts/predictclaw.py wallet status --json

Canonical user-facing templates now include:

  • template.predict-account.env
  • template.predict-account-vault.env

template.mandated-vault.env remains only as the internal/bootstrap compatibility template.

Configuration examples

The snippets below are .env examples. Put them in {baseDir}/.env or export the same names in your shell.

The installed skill directory ~/.openclaw/skills/predictclaw remains the only canonical user config root; {baseDir} is just the manifest/example placeholder for that installed path.

OPENROUTER_API_KEY appears in the signer examples only for optional hedge scan / hedge analyze usage. It is not required for market, wallet, or buy flows and is only needed for non-fixture hedge analysis.

Do not lead with the full env matrix when a user only asks how to configure the skill. Ask for the mode first, then show only the minimum fields for that mode.

bootstrap-safe fixture mode

PREDICT_ENV=test-fixture
PREDICT_WALLET_MODE=read-only

Use this for secret-free CLI verification and local market browsing only. It does not hit the live API.

live read-only mode

PREDICT_ENV=mainnet
PREDICT_WALLET_MODE=read-only
PREDICT_API_KEY=YOUR_PREDICT_API_KEY

Use the live templates as mainnet-first examples.

eoa mode

PREDICT_ENV=mainnet
PREDICT_WALLET_MODE=eoa
PREDICT_API_BASE_URL=https://api.predict.fun
PREDICT_API_KEY=YOUR_PREDICT_API_KEY
PREDICT_EOA_PRIVATE_KEY=0xYOUR_EOA_PRIVATE_KEY

predict-account mode

PREDICT_ENV=mainnet
PREDICT_WALLET_MODE=predict-account
PREDICT_API_BASE_URL=https://api.predict.fun
PREDICT_API_KEY=YOUR_PREDICT_API_KEY
PREDICT_ACCOUNT_ADDRESS=0xYOUR_PREDICT_ACCOUNT
PREDICT_PRIVY_PRIVATE_KEY=0xYOUR_PRIVY_EXPORTED_KEY

predict-account + vault route

The user-facing advanced mode is predict-account + vault, not a standalone mandated-vault mode.

Use the canonical template:

PREDICT_ENV=mainnet
PREDICT_API_BASE_URL=https://api.predict.fun
PREDICT_API_KEY=YOUR_PREDICT_API_KEY
PREDICT_WALLET_MODE=predict-account
PREDICT_ACCOUNT_ADDRESS=0xYOUR_PREDICT_ACCOUNT
PREDICT_PRIVY_PRIVATE_KEY=0xYOUR_PRIVY_EXPORTED_KEY
ERC_MANDATED_VAULT_ADDRESS=0xYOUR_DEPLOYED_VAULT
ERC_MANDATED_VAULT_ASSET_ADDRESS=0xYOUR_ASSET
ERC_MANDATED_VAULT_AUTHORITY=0xYOUR_AUTHORITY
ERC_MANDATED_AUTHORITY_PRIVATE_KEY=0xYOUR_VAULT_AUTHORITY_KEY
ERC_MANDATED_MCP_COMMAND=erc-mandated-mcp
ERC_MANDATED_CONTRACT_VERSION=v0.3.0-agent-contract
ERC_MANDATED_CHAIN_ID=56

If the vault does not exist yet, run the bootstrap helper first.

Internal bootstrap subflow (mandated-vault)

The older mandated-vault path remains only as the internal/bootstrap compatibility subflow used to create or prepare a vault before returning to predict-account + vault.

PREDICT_ENV=mainnet
PREDICT_API_BASE_URL=https://api.predict.fun
PREDICT_API_KEY=YOUR_PREDICT_API_KEY
PREDICT_WALLET_MODE=mandated-vault
PREDICT_EOA_PRIVATE_KEY=0xYOUR_EOA_PRIVATE_KEY
ERC_MANDATED_MCP_COMMAND=erc-mandated-mcp
ERC_MANDATED_CHAIN_ID=56

PredictClaw uses the fixed product factory 0x6eFC613Ece5D95e4a7b69B4EddD332CeeCbb61c6, previews first, requires explicit confirmation, and backfills .env with the deployed vault address and resolved values.

On --confirm, PredictClaw automatically enables the MCP broadcast gate for that subprocess and bridges the bootstrap signer key. The standard flow does not require manually setting ERC_MANDATED_ENABLE_BROADCAST=1 or ERC_MANDATED_BOOTSTRAP_PRIVATE_KEY, but it no longer auto-edits .env.

Preview first:

cd {baseDir} && uv run python scripts/predictclaw.py wallet bootstrap-vault --json

Confirm and broadcast:

cd {baseDir} && uv run python scripts/predictclaw.py wallet bootstrap-vault --confirm --json

Internal bootstrap compatibility paths

If you intentionally need the internal bootstrap path directly, the following compatibility variants remain:

Explicit deployed vault

PREDICT_ENV=mainnet
PREDICT_API_BASE_URL=https://api.predict.fun
PREDICT_API_KEY=YOUR_PREDICT_API_KEY
PREDICT_WALLET_MODE=mandated-vault
ERC_MANDATED_VAULT_ADDRESS=0xYOUR_DEPLOYED_VAULT
ERC_MANDATED_MCP_COMMAND=erc-mandated-mcp
ERC_MANDATED_CHAIN_ID=56

Predicted / undeployed vault

PREDICT_ENV=mainnet
PREDICT_API_BASE_URL=https://api.predict.fun
PREDICT_API_KEY=YOUR_PREDICT_API_KEY
PREDICT_WALLET_MODE=mandated-vault
ERC_MANDATED_FACTORY_ADDRESS=0xYOUR_FACTORY
ERC_MANDATED_VAULT_ASSET_ADDRESS=0xYOUR_ASSET
ERC_MANDATED_VAULT_NAME=Mandated Vault
ERC_MANDATED_VAULT_SYMBOL=MVLT
ERC_MANDATED_VAULT_AUTHORITY=0xYOUR_AUTHORITY
ERC_MANDATED_VAULT_SALT=0xYOUR_SALT
ERC_MANDATED_MCP_COMMAND=erc-mandated-mcp
ERC_MANDATED_CONTRACT_VERSION=v0.3.0-agent-contract
ERC_MANDATED_CHAIN_ID=56

ERC_MANDATED_EXECUTOR_PRIVATE_KEY is optional. When it is unset, PredictClaw reuses ERC_MANDATED_AUTHORITY_PRIVATE_KEY as the executor signer for the current Preflight MVP contract. This advanced/manual path can still expose manual-only create-vault preparation guidance when you intentionally stay on the manual route.

For advanced overrides, ERC_MANDATED_BOOTSTRAP_PRIVATE_KEY can replace the default bootstrap signer resolution and ERC_MANDATED_ENABLE_BROADCAST can explicitly force the execute-mode gate on or off. In the standard --confirm path, PredictClaw auto-bridges both values to the MCP subprocess for you.

predict-account + vault overlay (recommended advanced funding route)

PREDICT_ENV=mainnet
PREDICT_API_BASE_URL=https://api.predict.fun
PREDICT_API_KEY=YOUR_PREDICT_API_KEY
PREDICT_WALLET_MODE=predict-account
PREDICT_ACCOUNT_ADDRESS=0xYOUR_PREDICT_ACCOUNT
PREDICT_PRIVY_PRIVATE_KEY=0xYOUR_PRIVY_EXPORTED_KEY
ERC_MANDATED_VAULT_ADDRESS=0xYOUR_DEPLOYED_VAULT
ERC_MANDATED_MCP_COMMAND=erc-mandated-mcp
ERC_MANDATED_CONTRACT_VERSION=v0.3.0-agent-contract
ERC_MANDATED_CHAIN_ID=56

Ask first: Do you already have a vault?

  • Have a vault -> this is the default overlay path. Provide ERC_MANDATED_VAULT_ADDRESS and let PredictClaw resolve the remaining vault metadata where possible.
  • Need a vault -> deploy or redeploy a vault first with the pure mandated-vault bootstrap path, then return to overlay.

Only if automatic resolution fails should you manually add advanced vault metadata such as ERC_MANDATED_VAULT_ASSET_ADDRESS, ERC_MANDATED_VAULT_AUTHORITY, or authority/executor private keys.

In the overlay route, Predict Account remains the deposit/trading account while Vault funds the Predict Account through MCP-backed session and asset-transfer planning.

If you do not have a vault yet, the recommended answer is to deploy or redeploy one first with the pure mandated-vault bootstrap flow. The full derivation tuple (ERC_MANDATED_FACTORY_ADDRESS, ERC_MANDATED_VAULT_ASSET_ADDRESS, ERC_MANDATED_VAULT_NAME, ERC_MANDATED_VAULT_SYMBOL, ERC_MANDATED_VAULT_AUTHORITY, and ERC_MANDATED_VAULT_SALT) remains available as an advanced/manual path rather than the default first step.

The optional ERC_MANDATED_FUNDING_* envs cap Vault→Predict transfers by per-tx amount, per-window cumulative amount, and window duration. On BSC mainnet USDT, 5U = 5000000000000000000 and 10U = 10000000000000000000.

Wallet-mode contract

PredictClaw exposes four user-facing modes.

  • read-only — browse market data only; no signer-backed wallet actions.
  • eoa — direct signer path for wallet, trade, and funding flows.
  • predict-account — smart-wallet funding/trading path using PREDICT_ACCOUNT_ADDRESS plus PREDICT_PRIVY_PRIVATE_KEY.
  • predict-account + vault — user-facing advanced route where Predict Account remains the trading identity and Vault acts as the advanced funding source.

How to answer funding-address questions

  • In predict-account + vault, the default user-facing answer is the Vault deposit flow.
  • Predict Account remains the trading identity and receives the downstream vault-driven top-up afterward.
  • wallet deposit --json / wallet status --json therefore distinguish the default funding entry (manualTopUpAddress / fundingAddress) from the trading identity (predictAccountAddress, tradingIdentityAddress).
  • Only answer with the Predict Account deposit address when the active route is plain predict-account without the vault overlay.

First-time setup

  • Default local posture is test-fixture or mainnet.
  • mainnet market reads require PREDICT_API_KEY.
  • Explicit non-mainnet routing is supported only when you opt into it yourself.
  • read-only is browse-only. Start with markets ..., not signer-backed wallet or trade commands.
  • wallet status requires signer configuration.
  • eoa requires PREDICT_EOA_PRIVATE_KEY and rejects Predict Account or mandated-vault inputs.
  • predict-account requires both PREDICT_ACCOUNT_ADDRESS and PREDICT_PRIVY_PRIVATE_KEY.
  • wallet deposit shows the default funding entry for the active signer mode.
  • wallet bootstrap-vault is the helper used during predict-account + vault onboarding when a vault still needs to be created or prepared.
  • wallet redeem-vault --preview --json inspects vault-share redeemability before any real redeem flow is attempted.
  • Redeem preview returns machine-readable redeemableNow, blockingReason, and contractError fields, including contract errors such as ERC4626ExceededMaxRedeem.
  • wallet withdraw performs safety validation before any transfer logic.
  • mandated-vault remains only as an internal/bootstrap compatibility path and is not a standalone user mode.
  • Default bootstrap only needs the signer EOA, deployment fee funding, and any optional ERC_MANDATED_FUNDING_* amount caps.
  • In predict-account + ERC_MANDATED_* overlay, wallet status / wallet deposit expose manualTopUpAddress, tradingIdentityAddress, orchestrationVaultAddress, and vault-to-predict-account funding semantics while Predict Account remains the trade identity.
  • In that route, the default funding ingress is the Vault deposit flow, not the Predict Account address.
  • Vault-related JSON also exposes vaultAuthority, vaultExecutor, bootstrapSigner, allowedTokenAddresses, and allowedRecipients so OpenClaw can reason about configured permissions.
  • Overlay buy can proceed when the Predict Account balance is sufficient; otherwise it returns deterministic funding-required guidance that points to wallet deposit --json.
  • Pure mandated-vault needs a working ERC_MANDATED_MCP_COMMAND; in overlay mode the default path is an explicit ERC_MANDATED_VAULT_ADDRESS, with asset/authority metadata resolved automatically where possible and only escalated to manual fields when that resolution fails.
  • To detect whether the runtime is already available, run cd {baseDir} && uv run python scripts/predictclaw.py setup mandated-mcp.
  • The default path does not globally install packages and does not auto-edit .env.
  • Install the external erc-mandated-mcp runtime yourself, then set ERC_MANDATED_MCP_COMMAND manually.
  • Hedge analysis uses OpenRouter; OPENROUTER_API_KEY is only required for non-fixture hedge analysis, and fixture mode stays secret-free.
cd {baseDir} && uv run python scripts/predictclaw.py --help
cd {baseDir} && uv run python scripts/predictclaw.py wallet status --json
cd {baseDir} && uv run python scripts/predictclaw.py wallet deposit --json
cd {baseDir} && uv run python scripts/predictclaw.py wallet bootstrap-vault --json
cd {baseDir} && uv run python scripts/predictclaw.py wallet bootstrap-vault --confirm --json
cd {baseDir} && uv run python scripts/predictclaw.py wallet redeem-vault --share-token 0x4a88c1c95d0f59ee87c3286ed23e9dcdf4cf08d7 --holder 0x7df0ba782D85B93266b595d496088ABFAc823950 --all --preview --json
cd {baseDir} && uv run python scripts/predictclaw.py wallet withdraw usdt 1 0xb30741673D351135Cf96564dfD15f8e135f9C310 --json

Command surface

cd {baseDir} && uv run python scripts/predictclaw.py markets trending
cd {baseDir} && uv run python scripts/predictclaw.py markets search "election"
cd {baseDir} && uv run python scripts/predictclaw.py market 123 --json
cd {baseDir} && uv run python scripts/predictclaw.py wallet status --json
cd {baseDir} && uv run python scripts/predictclaw.py wallet approve --json
cd {baseDir} && uv run python scripts/predictclaw.py wallet deposit --json
cd {baseDir} && uv run python scripts/predictclaw.py wallet bootstrap-vault --json
cd {baseDir} && uv run python scripts/predictclaw.py wallet bootstrap-vault --confirm --json
cd {baseDir} && uv run python scripts/predictclaw.py wallet withdraw usdt 1 0xb30741673D351135Cf96564dfD15f8e135f9C310 --json
cd {baseDir} && uv run python scripts/predictclaw.py wallet withdraw bnb 0.1 0xb30741673D351135Cf96564dfD15f8e135f9C310 --json
cd {baseDir} && uv run python scripts/predictclaw.py buy 123 YES 25 --json
cd {baseDir} && uv run python scripts/predictclaw.py positions --json
cd {baseDir} && uv run python scripts/predictclaw.py position pos-123-yes --json
cd {baseDir} && uv run python scripts/predictclaw.py hedge scan --query election --json
cd {baseDir} && uv run python scripts/predictclaw.py hedge analyze 101 202 --json

Environment variables

Variable Purpose
PREDICT_STORAGE_DIR Local journal and position storage
PREDICT_ENV Defaults to mainnet in code; template.env intentionally bootstraps test-fixture; accepted values are mainnet, testnet, or test-fixture
PREDICT_WALLET_MODE Explicit mode override: read-only, eoa, predict-account, or mandated-vault
PREDICT_API_BASE_URL Optional REST base override; packaged live templates pin this to https://api.predict.fun, while leaving it empty uses the env-specific default
PREDICT_API_KEY Mainnet-authenticated predict.fun API access; required for mainnet market reads and trading
PREDICT_EOA_PRIVATE_KEY EOA trading and funding path
PREDICT_ACCOUNT_ADDRESS Predict Account smart-wallet address
PREDICT_PRIVY_PRIVATE_KEY Privy-exported signer for Predict Account mode
ERC_MANDATED_VAULT_ADDRESS Explicit deployed mandated vault address
ERC_MANDATED_FACTORY_ADDRESS Product default factory for pure bootstrap and manual derivation override; current default is 0x6eFC613Ece5D95e4a7b69B4EddD332CeeCbb61c6
ERC_MANDATED_VAULT_ASSET_ADDRESS ERC-4626 asset used in mandated-vault prediction/create preparation
ERC_MANDATED_VAULT_NAME Vault name used in mandated-vault prediction/create preparation
ERC_MANDATED_VAULT_SYMBOL Vault symbol used in mandated-vault prediction/create preparation
ERC_MANDATED_VAULT_AUTHORITY Authority address and create-vault from address for manual preparation
ERC_MANDATED_VAULT_SALT Deterministic salt used for vault prediction/create preparation
ERC_MANDATED_AUTHORITY_PRIVATE_KEY Preflight Vault signer key for the current single-key MVP contract
ERC_MANDATED_EXECUTOR_PRIVATE_KEY Optional dedicated executor signer; falls back to ERC_MANDATED_AUTHORITY_PRIVATE_KEY when unset
ERC_MANDATED_BOOTSTRAP_PRIVATE_KEY Optional execute-mode bootstrap signer override; when unset, PredictClaw falls back to PREDICT_EOA_PRIVATE_KEY, then ERC_MANDATED_AUTHORITY_PRIVATE_KEY
ERC_MANDATED_ENABLE_BROADCAST Optional execute-mode MCP gate override; wallet bootstrap-vault --confirm auto-bridges this to 1 unless you explicitly override it
ERC_MANDATED_MCP_COMMAND MCP launcher command (defaults to erc-mandated-mcp)
ERC_MANDATED_CONTRACT_VERSION Passed through to the mandated-vault MCP client
ERC_MANDATED_CHAIN_ID Optional explicit chain selection for the MCP bridge
ERC_MANDATED_ALLOWED_ADAPTERS_ROOT Optional 32-byte hex allowedAdaptersRoot used for Vault execution mandates; defaults to 0x11…11 for the current single-key MVP / PoC path
ERC_MANDATED_FUNDING_MAX_AMOUNT_PER_TX Optional Vault→Predict funding-policy maxAmountPerTx in raw token units
ERC_MANDATED_FUNDING_MAX_AMOUNT_PER_WINDOW Optional Vault→Predict funding-policy maxAmountPerWindow in raw token units
ERC_MANDATED_FUNDING_WINDOW_SECONDS Optional Vault→Predict funding-policy windowSeconds
OPENROUTER_API_KEY Optional OpenRouter credential; only required for non-fixture hedge analysis
PREDICT_MODEL OpenRouter model override
PREDICT_SMOKE_ENV Enables the smoke suite
PREDICT_SMOKE_API_BASE_URL Optional smoke REST base override
PREDICT_SMOKE_PRIVATE_KEY Enables signer/JWT smoke checks
PREDICT_SMOKE_ACCOUNT_ADDRESS Predict Account smoke mode
PREDICT_SMOKE_PRIVY_PRIVATE_KEY Predict Account smoke signer
PREDICT_SMOKE_API_KEY Smoke REST auth

Architecture note

  • SDK for chain-aware/signed flows
  • REST for auth, data, order submission, and query

Safety notes

  • Do not treat fixture mode as proof of funded-wallet behavior.
  • Do not assume live liquidity from docs alone.
  • Keep only limited funds on automation keys.
  • Withdrawal commands are public; transfer validation happens before chain interaction, but users still own the operational risk.
  • When the goal is to keep Predict Account as the trading identity and let Vault only fund it, immediately choose predict-account + ERC_MANDATED_*.
  • mandated-vault is an advanced explicit opt-in mode. Treat it as a separate control-plane path, not a co-equal answer for Predict Account trading.
  • predict-account + ERC_MANDATED_* is the recommended advanced trading route when you want Vault to fund the Predict Account while keeping the official Predict Account order model.
  • Explicit-vs-predicted vault semantics: ERC_MANDATED_VAULT_ADDRESS targets an existing vault directly; otherwise PredictClaw uses the derivation tuple to ask the MCP for the predicted vault address.
  • wallet bootstrap-vault --json is preview-only, requires explicit confirmation before broadcast, and backfills .env after a confirmed deployment.
  • Advanced/manual derivation flows can still return create-vault preparation details (predictedVault, transaction summary, manual-only) without broadcasting.
  • Trust boundary: the MCP orchestrates transport and preparation; the vault contract policy authorizes what the vault can actually execute.
  • Pure mandated-vault does not provide predict.fun trading parity. wallet approve, wallet withdraw, buy, positions, position, hedge scan, and hedge analyze fail closed with unsupported-in-mandated-vault-v1.
  • Overlay funding currently plans the vault leg and surfaces deterministic funding-required guidance when buy needs top-up; it does not auto-execute the funding leg in the current local signer context.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,037
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,020
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,019
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,016
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,015
Skill 文件
  • SKILL.md
    • PredictClaw
    • Install
      • ClawHub / packaged install
      • Manual install
    • How configuration actually works
    • Mode-first onboarding
    • Mode reminders
    • Recommended operating model
    • Configuration examples
      • bootstrap-safe fixture mode
      • live read-only mode
      • eoa mode
      • predict-account mode
      • predict-account + vault route
      • Internal bootstrap subflow (mandated-vault)
      • Internal bootstrap compatibility paths
        • Explicit deployed vault
        • Predicted / undeployed vault
      • predict-account + vault overlay (recommended advanced funding route)
    • Wallet-mode contract
    • How to answer funding-address questions
    • First-time setup
    • Command surface
    • Environment variables
    • Architecture note
    • Safety notes
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期