链上交易前置风险哨兵
简介
Bitfence 为 Solana、Base、Ethereum 等多链交易提供预交易风险评分,基于链上公开数据识别蜜罐、高卖税、Rug 等威胁,辅助用户做出知情决策,仅读取不触资。
原始描述
Fetch a pre-transaction risk score and advisory recommendation for tokens on Solana, Base, Ethereum, Arbitrum, BSC, and HyperEVM before the user trades, swaps, or provides liquidity. Read-only; never signs or moves funds.
通过你的 Agent 添加
安装目录:bitfence/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
Bitfence 是一项只读式预交易风险评估服务,面向在 Solana、Base、Ethereum、Arbitrum、BSC、HyperEVM 等链上操作的 AI Agent 和用户。其核心用法是在用户即将与陌生代币交互前,调用 Bitfence API 获取风险评分与建议。主要接口包括:
- 基础风险端点 (
GET /v1/risk/{chain}/{token_address}):返回代币的综合风险评分(0-100)、风险等级(LOW/MEDIUM/HIGH)、置信度及操作建议(PROCEED/REQUIRE_HUMAN_APPROVAL/BLOCK)。 - 情境化风险端点 (
POST /v1/risk/contextual):在用户明确授权后,结合仓位规模与组合总值,提供滑点估算、MEV 暴露评级及建议仓位上限。
调用时仅需提供公开链标识符与代币合约地址,无需钱包地址或交易详情。每次调用通过 x402 协议支付小额 USDC($0.10–$0.20),需事先获得用户知情同意。
显著优点
- 多链覆盖与标准化输出:支持六大主流公链,统一 JSON 格式的风险报告,便于 Agent 程序化解析决策。
- 细粒度风险识别:内置十余项熔断器(circuit breakers),可识别蜜罐合约、隐藏所有权、可修改税率、流动性解锁风险、持仓过度集中等链上可验证威胁。
- 用户主权优先:明确定位为「咨询性护栏」,最终决策权始终归用户所有,系统仅在用户知情同意后执行。
- 隐私最小化设计:仅传输公开链上标识符,不接触钱包地址、持仓明细或交易签名,降低敏感数据泄露风险。
- 置信度与降级处理:当数据源缺失或交叉验证失败时,系统降低置信度并可能下调建议等级,避免在信息不足时给出过度乐观的 PROCEED 判定。
潜在缺点与局限性
- 付费门槛:每次检查需消耗 USDC,高频交易或批量筛查场景下成本累积显著;用户若未在 Base 主网持有 USDC 则无法使用。
- 数据覆盖盲区:置信度低于 0.5 时表明链上数据不完整,新币、低流动性代币或跨源数据冲突可能导致评估可靠性下降。
- 非完全防御:Bitfence 仅提供事前建议,无法阻止用户强制执行交易,也无法拦截已签名的恶意合约交互;对于未触发熔断器的新型攻击模式可能存在滞后性。
- 网络依赖:服务可用性受制于 Bitfence API 与 x402 支付网络状态,链上拥堵或 Oracle 故障时可能导致检查失败。
- 情境化端点的隐私权衡:尽管不传输钱包地址,但分享仓位规模与组合总值仍向第三方泄露了部分财务信息,需用户明确授权。
适合的目标群体
- DeFi 活跃交易者:频繁接触新币、参与早期流动性池或响应社区 Alpha 信息的链上用户。
- AI Agent 开发者:需要为交易机器人集成前置安全检查,防止自动化脚本误入恶意合约。
- 投资组合管理工具:希望在执行交换或质押前向用户展示风险摘要的钱包插件或资管平台。
- 安全意识较强的散户:愿意支付小额费用换取额外安心,但仍希望保留最终决策权的用户。
常规使用风险
- 性能延迟:风险分析平均耗时数百毫秒,极端情况下可能增加交易前等待时间;缓存机制虽可加速,但可能返回非实时数据。
- 依赖项风险:x402 支付协议、Base 主网 USDC 余额及 Bitfence API 的可用性构成外部依赖链,任一环节故障将导致服务中断。
- 误报与漏报:经过审核的知名代币仍可能因数据源争议被标记低置信度;反之,精心设计的恶意合约可能在早期未被熔断器捕获。
- 成本管理失误:未实施调用频率限制可能导致意外费用累积,尤其在循环或批量查询场景下。
- 用户体验摩擦:强制前置同意流程与付费确认可能打断交易流程,降低高频操作效率。
- 付费门槛:每次检查需消耗 USDC,高频交易或批量筛查场景下成本累积显著;用户若未在 Base 主网持有 USDC 则无法使用。
- 数据覆盖盲区:置信度低于 0.5 时表明链上数据不完整,新币、低流动性代币或跨源数据冲突可能导致评估可靠性下降。
- 非完全防御:Bitfence 仅提供事前建议,无法阻止用户强制执行交易,也无法拦截已签名的恶意合约交互;对于未触发熔断器的新型攻击模式可能存在滞后性。
- 网络依赖:服务可用性受制于 Bitfence API 与 x402 支付网络状态,链上拥堵或 Oracle 故障时可能导致检查失败。
- 情境化端点的隐私权衡:尽管不传输钱包地址,但分享仓位规模与组合总值仍向第三方泄露了部分财务信息,需用户明确授权。
适合的目标群体
- DeFi 活跃交易者:频繁接触新币、参与早期流动性池或响应社区 Alpha 信息的链上用户。
- AI Agent 开发者:需要为交易机器人集成前置安全检查,防止自动化脚本误入恶意合约。
- 投资组合管理工具:希望在执行交换或质押前向用户展示风险摘要的钱包插件或资管平台。
- 安全意识较强的散户:愿意支付小额费用换取额外安心,但仍希望保留最终决策权的用户。
常规使用风险
- 性能延迟:风险分析平均耗时数百毫秒,极端情况下可能增加交易前等待时间;缓存机制虽可加速,但可能返回非实时数据。
- 依赖项风险:x402 支付协议、Base 主网 USDC 余额及 Bitfence API 的可用性构成外部依赖链,任一环节故障将导致服务中断。
- 误报与漏报:经过审核的知名代币仍可能因数据源争议被标记低置信度;反之,精心设计的恶意合约可能在早期未被熔断器捕获。
- 成本管理失误:未实施调用频率限制可能导致意外费用累积,尤其在循环或批量查询场景下。
- 用户体验摩擦:强制前置同意流程与付费确认可能打断交易流程,降低高频操作效率。
- 性能延迟:风险分析平均耗时数百毫秒,极端情况下可能增加交易前等待时间;缓存机制虽可加速,但可能返回非实时数据。
- 依赖项风险:x402 支付协议、Base 主网 USDC 余额及 Bitfence API 的可用性构成外部依赖链,任一环节故障将导致服务中断。
- 误报与漏报:经过审核的知名代币仍可能因数据源争议被标记低置信度;反之,精心设计的恶意合约可能在早期未被熔断器捕获。
- 成本管理失误:未实施调用频率限制可能导致意外费用累积,尤其在循环或批量查询场景下。
- 用户体验摩擦:强制前置同意流程与付费确认可能打断交易流程,降低高频操作效率。
技能正文
name: "bitfence"
description: "Fetch a pre-transaction risk score and advisory recommendation for tokens on Solana, Base, Ethereum, Arbitrum, BSC, and HyperEVM before the user trades, swaps, or provides liquidity. Read-only; never signs or moves funds."
categories: ["analysis", "trade-execution","trading-strategies","trade-review"]
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, Base, Ethereum, Arbitrum, BSC, and HyperEVM. 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 ($0.10 for a token risk assessment, $0.20 for a contextual assessment). 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, base, ethereum, arbitrum, bsc, or hyperevm. |
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, ethereum, arbitrum, bsc, hyperevm (lowercase).
Examples:
GET https://api.bitfence.ai/v1/risk/solana/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
GET https://api.bitfence.ai/v1/risk/base/0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
GET https://api.bitfence.ai/v1/risk/ethereum/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
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": "<token_address>",
"position_size_usd": <amount>,
"agent_portfolio_usd": <total_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 flag in flags_triggered together with the reasoning text to the user, and ask the user to make an explicit, informed decision. The user remains free to override after seeing the warnings. |
Treat confidence < 0.5 as a sign that the underlying data was incomplete or contested; mention this to the user when reporting the result. When independent data sources disagreed on a fact, the reasoning field names it ("Cross-source disagreement on: …") and that fact is excluded from confidence. A degraded object in the response names exactly which data sources were unavailable — if degraded.recommendation_capped is true, the recommendation was capped at REQUIRE_HUMAN_APPROVAL because a safety-critical check could not run, not because a threat was measured.
The user is always the final authority. Your job is to present the risk findings accurately and let the user decide.
Circuit breakers
If flags_triggered is non-empty, the API has detected one or more hard safety conditions. Measured threats (honeypot — a token whose sell path measurably reverts — high_sell_tax, selfdestruct) override even trusted tokens. Heuristic flags (for example hidden_owner_and_mint, hidden_owner_and_mint_evm, balance_mutable, modifiable_tax, lp_fully_unlocked_deployer_held, lp_unlock_imminent, already_rugged, extreme_holder_concentration, insider_cohort_concentration, deployer_concentration_young_token, no_dex_pool_micro_holders, micro_holder_count) indicate strong risk evidence for unknown tokens. Each entry is the name of the circuit breaker that fired; the human-readable explanation is in the reasoning field.
When this happens:
- Present every flag name and the
reasoningtext to the user. - 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
Verbatim v0.7.6 response for wrapped SOL (confidence truncated for display):
{
"chain": "solana",
"token_address": "So11111111111111111111111111111111111111112",
"risk_score": 15,
"risk_level": "LOW",
"confidence": 0.64,
"recommendation": "PROCEED",
"reasoning": "Wrapped SOL (wSOL) is on the curated trusted-token registry; the risk score is capped at 15 and heuristic breakers do not floor it. Measured threats would still override the cap. Cross-source disagreement on: liquidity_usd, lp_burned_pct, holder_count — excluded from confidence grounding. Pool is established (age ≥ 30 days).",
"flags_triggered": [],
"trusted_token": "Wrapped SOL (wSOL)",
"cached": true,
"cache_source": "l1",
"analysis_ms": 630,
"response_ms": 0,
"version": "0.7.6"
}
trusted_token and degraded only appear when they apply; a clean fresh assessment omits both and has "cached": false, "cache_source": null.
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.
flags_triggered array of strings Names of circuit breakers that fired. Empty when none did.
trusted_token string, optional Curated registry label (e.g. "Circle (USDC)"). Only present on a match.
degraded object, optional Present iff a safety-critical data source was unavailable:
missing_sources Data sources that were dark, e.g. ["lp_lock_data"]
checks_not_run Breakers that could not reach a conclusion
recommendation_capped True when the missing checks forbid a PROCEED
cached boolean True if the response came from cache.
cache_source string or null "l1" | "l2" when cached, null on a fresh assessment.
analysis_ms integer Time the underlying analysis took (cached responses keep the original).
response_ms integer Wall-clock time for this request.
version string API version that produced the assessment.
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
base
0x-prefixed 42-char hex address
Ethereum
ethereum
0x-prefixed 42-char hex address
Arbitrum
arbitrum
0x-prefixed 42-char hex address
BSC
bsc
0x-prefixed 42-char hex address
HyperEVM
hyperevm
0x-prefixed 42-char hex address
Useful links
- Website: https://www.bitfence.ai
- Twitter / X: https://x.com/bitfenceai
- API root: https://api.bitfence.ai
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.
flags_triggered array of strings Names of circuit breakers that fired. Empty when none did.
trusted_token string, optional Curated registry label (e.g. "Circle (USDC)"). Only present on a match.
degraded object, optional Present iff a safety-critical data source was unavailable:
missing_sources Data sources that were dark, e.g. ["lp_lock_data"]
checks_not_run Breakers that could not reach a conclusion
recommendation_capped True when the missing checks forbid a PROCEED
cached boolean True if the response came from cache.
cache_source string or null "l1" | "l2" when cached, null on a fresh assessment.
analysis_ms integer Time the underlying analysis took (cached responses keep the original).
response_ms integer Wall-clock time for this request.
version string API version that produced the assessment.
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
| Chain | Identifier | Token address format |
|---|---|---|
| Solana | solana |
Base58 mint address (32–44 chars) |
| Base | base |
0x-prefixed 42-char hex address |
| Ethereum | ethereum |
0x-prefixed 42-char hex address |
| Arbitrum | arbitrum |
0x-prefixed 42-char hex address |
| BSC | bsc |
0x-prefixed 42-char hex address |
| HyperEVM | hyperevm |
0x-prefixed 42-char hex address |
Useful links
- Website: https://www.bitfence.ai
- Twitter / X: https://x.com/bitfenceai
- API root: https://api.bitfence.ai
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.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。