Install any skill in seconds. Free to start, no credit card required.
Get Started Free →OKX Agentic Wallet skill manages login, balances, transfers, contract calls, swaps, bridges and Gas Station payments via onchainos CLI.
Use this skill ↓55% 68%+14 ptsof test cases passed
Passed 15 of 22 test cases with the skill, and 12 of 22 without it.
3 of 3 safety checks passed
Not used yet
Token risk / honeypot detection, DApp/URL phishing detection, transaction pre-execution security, message signature safety, and approval management. 5 commands: token-scan, dapp-scan, tx-scan, sig-scan, approvals. Security commands do not require wallet login — they work with any address. Chain names resolve automatically. EVM (0x…) and Solana (Base58) address formats are not interchangeable — do not mix them across chain types.
action: block / warn, or a non-LOW riskLevel) → follow the priority rules below; the Agent MUST NOT override a risk verdict.tx-scan / sig-scan: block > warn > safe (empty). The top-level action reflects the highest priority in riskItemDetail.
action | Level | Behavior |
|---|---|---|
| empty/null | Low | Safe to proceed |
warn | Medium | Show risk details, ask for explicit confirmation |
block | High | Do NOT proceed, show details, recommend cancel |
The risk result is valid even if simulation fails (simulator.revertReason may hold the reason). A populated warnings field means the scan completed but data may be incomplete — still present available risk info. Empty action means "no risk" only on a successful response; on a failed call, apply the fail-safe principle.
token-scan: pass --trade-direction buy|sell when the scan is part of a trade — the CLI then classifies each token server-side and returns the verdict as fields, so MUST: read them directly and NEVER: recompute the verdict from raw riskLevel client-side (the riskLevel×direction matrix lives in the CLI now; a hand-derived copy drifts from it). Each token carries normalizedRiskLevel (CRITICAL / HIGH / MEDIUM / LOW), action, and isNative; the top level carries combinedAction (strictest action across all non-native tokens) and tradeDirection. Respond to the action enum (severity block > pause > warn > safe):
action | Respond |
|---|---|
block | Refuse the buy; show the risk. |
pause | Require an explicit yes/no before continuing. |
warn | Show the risk as an info notice; continue (buy) or allow (sell). |
safe | Proceed. |
Buy is stricter than sell, but that mapping is the CLI's — do not re-derive it. Omit --trade-direction for a standalone scan (no trade context): the CLI returns the raw backend array with no action field and you present all triggered labels without buy/sell logic. Show only the overall normalizedRiskLevel (never individual label levels), listing triggered labels without level prefixes. isChainSupported: false → skip with a warning, do not block. In swap context, a token-scan API failure auto-continues with a warning (overrides the general fail-safe to avoid blocking time-sensitive trades); standalone, follow the general fail-safe. Missing / null / unrecognized riskLevel normalizes to HIGH (the CLI does this).
Set --trade-direction from the intent: buy = the token being received (--to in a swap), sell = the token being spent (--from), standalone (no swap context) = omit the flag and present all triggered labels with no buy/sell logic. When scanning a swap pair, pass every token in one --tokens call and read the CLI's combinedAction for the pair verdict — it already takes the strictest action across non-native tokens and skips native ones, so do not reduce it yourself.
Recommended: fetch holdings first (display to the user), then scan with --tokens:
wallet balance [--chain <chain>] → extract non-native ERC-20/SPL tokens → security token-scan --tokens "<chainIndex>:<addr>,...".portfolio all-balances --address <addr> --chains "..." --filter 1 (EVM and Solana as separate calls) → display holdings → token-scan --tokens ....chainId:contractAddress: pass directly to --tokens. Name/symbol → token search first, confirm, then scan.Next to this one in the catalogue, plus more from the same author.