Install
openclaw skills install bitfenceProvides pre-transaction risk assessments for token trades on Solana and Base, returning safety recommendations via rapid, paid oracle queries.
openclaw skills install bitfenceBitfence 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.
Bitfence only ever receives public on-chain identifiers. Specifically:
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.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.
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:
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.
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) |
Bitfence is most useful before the user is about to interact with an unfamiliar or unverified token. Typical situations:
Bitfence is not needed for:
If you are unsure whether a check is warranted, ask the user.
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": "<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.
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 < 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.
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:
If Bitfence returns an error or is unreachable:
{
"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.
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
| Chain | Identifier | Token address format |
|---|---|---|
| Solana | solana | Base58 mint address (32–44 chars) |
| Base (EVM) | base | 0x-prefixed 42-char hex address |
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.