← 返回 Skills 市场
bilsbys

Bitfence - pre-transaction risk infrastructure for AI agents operating on-chain

作者 bilsbys · GitHub ↗ · v0.5.1 · MIT-0
cross-platform ✓ 安全检测通过
107
总下载
1
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install bitfence
功能描述
Provides pre-transaction risk assessments for token trades on Solana and Base, returning safety recommendations via rapid, paid oracle queries.
使用说明 (SKILL.md)

Bitfence — pre-transaction risk infrastructure for AI agents operating on-chain

Bitfence is an optional, user-controlled pre-transaction risk-scoring service for tokens on Solana and Base. When the user is about to interact with an unfamiliar token, this skill lets you fetch a risk assessment from the public Bitfence API so the user can make an informed decision.

Bitfence is read-only. It does not sign transactions, broadcast transactions, hold funds, or interact with the user's wallet. It returns a JSON risk report and nothing more.

This skill provides advisory guardrails. The user is always the final authority. If the user explicitly chooses to proceed after seeing a risk warning, that is their decision and you should respect it.


Privacy and data sent

Bitfence only ever receives public on-chain identifiers. Specifically:

  • Token risk endpoint (GET /v1/risk/{chain}/{token_address}) — sends only the chain name and the public token contract address. No wallet address, no portfolio, no transaction details.
  • Contextual endpoint (POST /v1/risk/contextual) — additionally sends the position size and total portfolio size in USD, only when the user has explicitly opted in to contextual analysis. No wallet address is ever transmitted.

Do not call the contextual endpoint without the user's awareness that position-size context will be shared with the API.


Cost transparency

Bitfence is monetised via the x402 protocol — each scoring request costs a small amount of USDC on Base mainnet (typically a few tenths of a cent). Before you begin using Bitfence in a session:

  • Inform the user that risk checks are paid and will draw from the wallet's USDC balance on Base mainnet.
  • Ask for the user's consent the first time you call Bitfence in a session, or when the user has not previously authorised paid risk checks.
  • Do not call Bitfence repeatedly in tight loops, batch operations, or polling patterns. Use it once per distinct trade decision.
  • If the user declines paid checks, fall back to whatever native safety checks you and the user have agreed on.

If x402 payment fails, do not retry blindly. Inform the user that the wallet needs USDC on Base mainnet to use Bitfence, and let the user decide whether to top up or skip the check.


Available endpoints

Base URL: https://api.bitfence.ai

Method Path Purpose Paid?
GET / Service metadata — name, version, status. Free
GET /health Health probe. Returns 200 OK when operational. Free
GET /v1/risk/{chain}/{token_address} Token risk assessment. chain is solana or base. Yes (x402)
POST /v1/risk/contextual Position-aware risk assessment with slippage, MEV exposure, and a suggested position cap. Yes (x402)

When Bitfence is useful

Bitfence is most useful before the user is about to interact with an unfamiliar or unverified token. Typical situations:

  • A token swap or DEX trade involving a token the user has not traded before
  • A purchase of a token recommended by an external source the user has not vetted
  • Providing liquidity or staking into a pool involving an unfamiliar token

Bitfence is not needed for:

  • Transfers of native gas tokens (SOL, ETH) between the user's own wallets
  • Transactions exclusively involving well-established stablecoins (USDC, USDT, DAI)
  • Tokens the user has already verified earlier in the session

If you are unsure whether a check is warranted, ask the user.


How to call Bitfence

Token risk only — use when the position size is not yet known:

GET https://api.bitfence.ai/v1/risk/{chain}/{token_address}

Supported chains: solana, base (lowercase).

Examples:

GET https://api.bitfence.ai/v1/risk/solana/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
GET https://api.bitfence.ai/v1/risk/base/0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Contextual risk — use only when the user has opted in to share the position size:

POST https://api.bitfence.ai/v1/risk/contextual
Content-Type: application/json

{
  "chain": "solana",
  "token": "\x3Ctoken_address>",
  "position_size_usd": \x3Camount>,
  "agent_portfolio_usd": \x3Ctotal_portfolio>
}

The contextual response adds estimated slippage, MEV exposure category, and a suggested position cap.


How to interpret the response

The response contains a recommendation field. Treat it as advisory:

recommendation Suggested behaviour
PROCEED The risk check found no significant concerns. You may proceed with the transaction as planned.
REQUIRE_HUMAN_APPROVAL The risk check found notable concerns. Surface the reasoning field to the user and ask whether they want to proceed before doing so.
BLOCK The risk check detected a serious safety concern. Stop, surface every entry in circuit_breakers to the user verbatim, and ask the user to make an explicit, informed decision. The user remains free to override after seeing the warnings.

Treat confidence \x3C 0.5 as a sign that the underlying data was incomplete; mention this to the user when reporting the result.

The user is always the final authority. Your job is to present the risk findings accurately and let the user decide.


Circuit breakers

If circuit_breakers is non-empty, the API has detected one or more hard safety conditions (for example, a token whose sell function reverts, or unbounded supply controls). Each entry includes a human-readable description.

When this happens:

  • Present every breaker description to the user verbatim.
  • Recommend not proceeding and explain why.
  • If the user explicitly chooses to proceed anyway after being informed, respect their decision and acknowledge it clearly in your response.

Error handling

If Bitfence returns an error or is unreachable:

  • Inform the user that the risk check could not complete.
  • Offer the user the choice to proceed without the check, retry, or abandon the action.
  • Do not silently retry more than once.

Example response

{
  "chain": "solana",
  "token": "So11111111111111111111111111111111111111112",
  "risk_score": 12,
  "risk_level": "LOW",
  "confidence": 0.94,
  "recommendation": "PROCEED",
  "reasoning": "Established token with deep liquidity and stable holder distribution.",
  "circuit_breakers": [],
  "signals": { },
  "cached": false,
  "cache_age_seconds": 0
}

For the contextual endpoint, an additional context object is returned with slippage, MEV exposure, and a suggested_max_usd position cap.


Response fields reference

risk_score          integer 0–100     Composite risk score. 0 = safe, 100 = maximum risk.
risk_level          string            LOW | MEDIUM | HIGH (advisory tier)
confidence          float 0–1         Coverage of live on-chain data. Below 0.5 = limited data.
recommendation      string            Advisory action. See table above.
reasoning           string            Human-readable explanation. Quote to the user when relevant.
circuit_breakers    array             Hard safety conditions. Each entry has a `description` field.
signals             object            Per-category breakdown. Treat as diagnostic data.
cached              boolean           True if the response came from cache.
cache_age_seconds   integer           Age of the cached result in seconds.

context.*           (contextual endpoint only)
  pool_liquidity_usd          Total liquidity in the token's primary pool
  estimated_slippage_pct      Slippage % for the specified position size
  effective_cost_usd          Cost after slippage
  max_safe_position_usd       Largest position keeping slippage low
  portfolio_concentration_pct Position as % of total portfolio
  mev_exposure                Sandwich attack risk: low | medium | high
  suggested_max_usd           Recommended position cap

Supported chains

Chain Identifier Token address format
Solana solana Base58 mint address (32–44 chars)
Base (EVM) base 0x-prefixed 42-char hex address

Useful links

Bitfence is operated by the Bitfence team as an independent, read-only risk oracle. It does not custody user funds, does not have the ability to move user funds, and does not communicate with the user's wallet beyond receiving x402 micropayments that the user's agent voluntarily initiates.

安全使用建议
This skill appears internally consistent: it only tells the agent to query a public API for token risk scores and to present results to the user. Before using it, confirm the agent will: (1) always prompt you and obtain explicit consent before initiating any paid x402 call from your wallet, (2) never call the contextual endpoint or send position-size data without your opt-in, and (3) rate-limit checks (avoid repeated polling). Also note the skill's source/homepage are not provided; if you need stronger assurances, ask the publisher for provenance (official site, audit, or repo) and prefer manual invocation or whitelisting so the agent cannot charge your wallet without explicit, per-call approval.
功能分析
Type: OpenClaw Skill Name: bitfence Version: 0.5.1 The Bitfence skill is a read-only risk assessment tool designed to provide AI agents with token safety data from api.bitfence.ai. The instructions in SKILL.md emphasize user consent, cost transparency for x402 payments, and data privacy, ensuring that only public on-chain identifiers or user-approved context are shared. There is no evidence of malicious execution, data exfiltration, or unauthorized wallet interaction.
能力标签
cryptorequires-walletcan-make-purchasescan-sign-transactions
能力评估
Purpose & Capability
Name/description align with the instructions: the SKILL.md only instructs the agent to call a public Bitfence API for token risk scoring on Solana and Base. The fact that checks are paid via on-chain x402 payments is documented in the instructions and is a plausible capability for a risk-oracle; no unrelated credentials, binaries, or installs are requested.
Instruction Scope
Instructions are narrowly scoped to HTTP calls to api.bitfence.ai and to presenting results to the user. The skill explicitly forbids sending wallet addresses and warns about asking consent before contextual requests and paid checks. Note: it relies on the agent/platform wallet integration to perform x402 payments, so the agent must prompt/obtain explicit user consent before any on-chain payment—this is documented but depends on correct agent behavior.
Install Mechanism
No install spec and no code files — instruction-only skill. This is lowest-risk for disk persistence or arbitrary code installation.
Credentials
The skill requires no environment variables, keys, or config paths. The only sensitive action is a paid on-chain x402 charge (drawn from the user's wallet), which is appropriate to be handled by the user's wallet integration rather than environment secrets. The SKILL.md documents consent and cost transparency requirements.
Persistence & Privilege
always is false and there are no installation actions that modify other skills or system settings. The skill is user-invocable and can be called autonomously by the agent (platform default); the SKILL.md places explicit constraints around paid calls and consent.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install bitfence
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /bitfence 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.5.1
**Major update — agents now treat Bitfence as an optional, user-driven safety advisory instead of an enforced pre-condition.** - New skill instructions clarify that Bitfence is user-controlled and purely advisory; users always have the final say on transactions. - Privacy and data-sharing guidance added: explicit user consent now required before running paid, contextual risk checks. - Agents must inform users that risk assessments incur small USDC fees on Base mainnet before calling Bitfence for the first time in a session. - Error and circuit breaker handling updated: surface all warnings, but respect explicit user overrides. - Batched or repeated risk checks discouraged; call Bitfence only once per decision. - Response and endpoint documentation streamlined for user transparency.
v0.5.0
- Major update introducing detailed agent instructions and usage rules. - Adds clear requirements for risk checks before token transactions. - Documents all API endpoints, inputs, and response fields. - Outlines mandatory actions based on Bitfence recommendations or circuit breakers. - Includes guidance on error and payment failure handling. - Provides practical examples and strict rules for never skipping Bitfence.
元数据
Slug bitfence
版本 0.5.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Bitfence - pre-transaction risk infrastructure for AI agents operating on-chain 是什么?

Provides pre-transaction risk assessments for token trades on Solana and Base, returning safety recommendations via rapid, paid oracle queries. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 107 次。

如何安装 Bitfence - pre-transaction risk infrastructure for AI agents operating on-chain?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install bitfence」即可一键安装,无需额外配置。

Bitfence - pre-transaction risk infrastructure for AI agents operating on-chain 是免费的吗?

是的,Bitfence - pre-transaction risk infrastructure for AI agents operating on-chain 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Bitfence - pre-transaction risk infrastructure for AI agents operating on-chain 支持哪些平台?

Bitfence - pre-transaction risk infrastructure for AI agents operating on-chain 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Bitfence - pre-transaction risk infrastructure for AI agents operating on-chain?

由 bilsbys(@bilsbys)开发并维护,当前版本 v0.5.1。

💬 留言讨论