OpenParable
Skip to content
← Back to skills

Onchain Audit

DevOps & Security
onchain-audit

Onchain Audit is an Agent Skill for devops & security published in the LeoYeAI/openclaw-master-skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

On-chain data and contract security analysis. Includes Binance API and Bitget API for audit, token info, wallet, and contract analysis. CLAWBOT decides which to use based on context.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/LeoYeAI/openclaw-master-skills/blob/HEAD/skills/crab/onchain-audit/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/onchain-audit, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

On-chain Audit — Contract & On-chain Analysis

Two data sources; CLAWBOT chooses based on context. Binance and Bitget data can be cross-verified.


1. Binance API (onchain)

POST https://crab-skill.opsat.io/api/onchain/* (requires Crab signature)

Fields: address + chainName (uppercase: BSC/ETHEREUM/BASE/SOLANA)

EndpointDescription
/api/onchain/auditContract security audit (Binance + Bitget dual-source)
/api/onchain/token-infoToken metadata and market dynamics
/api/onchain/walletWallet positions (BSC/BASE/SOLANA only)
/api/onchain/token-searchToken search (requires keyword instead of address)

2. Bitget API (onchain-2)

POST https://crab-skill.opsat.io/api/onchain-2/* (requires Crab signature)

Fields: chain + contract (lowercase: bnb/eth/base/sol)

Note: field names and chain format differ from Binance endpoints.

EndpointDescription
/api/onchain-2/token-infoToken details (symbol, name, market cap, etc.)
/api/onchain-2/token-priceToken price summary
/api/onchain-2/tx-infoToken transaction statistics
/api/onchain-2/liquidityLiquidity pool info
/api/onchain-2/security-auditSecurity audit (risk/warn/low checks)


3. Onchain Explorer API (explorer)

POST https://crab-skill.opsat.io/api/explorer/* (requires Crab signature)

See API_EXPLORER.md for full parameter and response details.

3a. Contract ABI / Source Code

Endpoint: /api/explorer/contract

Fields: chain (ETH or BSC) + address

Key fieldDescription
verifiedContract is open-source and verified on Etherscan
contractNameContract name
compilerVersionSolidity compiler version
optimizationUsedWhether optimization was enabled
abiContract ABI array
sourceCodeSource code (string, or object for multi-file)
licenseTypeLicense type
proxyIs this a proxy contract
implementationImplementation address (proxy only)

Returns { verified: false } for unverified contracts.

3b. Token Transfer History

Endpoint: /api/explorer/token-history

Fields: chain (ETH / BSC / SOL) + address + optional pagination/filter

  • ETH/BSC: pagination via outPageKey / inPageKey; each record has hash, from, to, value, asset, category, blockNum, blockTimestamp
  • SOL: filter by type (SWAP/TRANSFER/BURN/...) and source (JUPITER/RAYDIUM/...); paginate via before; each record has signature, timestamp, type, source, fee, nativeTransfers, tokenTransfers, events

3c. SOL Address Overview

Endpoint: /api/explorer/sol-address

Fields: address + optional txLimit (default 10)

Returns: native SOL balance (lamports + USD), SPL token list, recent transfer records.


Fallback Behavior

ScenarioBehavior
Unknown contract chainSkip audit
No token search resultsSkip token search
Wallet chain not supportedSkip wallet query
Contract not verified (explorer)Note as unverified, skip ABI/source display
Explorer upstream unavailableSkip, continue with other sources