Borrowing it
Nothing to install: this file belongs to nirholas/three.ws. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/nirholas/three.ws/main/.agents/skills/okx-onchain-gateway/SKILL.mdgit clone --depth 1 https://github.com/nirholas/three.wsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/nirholas/three.ws/okx-onchain-gateway)<a href="https://agentmods.dev/skills/nirholas/three.ws/okx-onchain-gateway"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/okx-onchain-gateway/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/nirholas/three.ws/okx-onchain-gateway"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/okx-onchain-gateway.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high System Prompt Leakage · line 145 Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.Fix: Remove any instructions that reveal, print, or output system prompts or internal rules. System instructions should never be exposed to end users.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00096 | $0.02281 |
| Opus 5 | $0.00048 | $0.01141 |
| Sonnet 5 | $0.00019 | $0.00456 |
| Haiku 4.5 | $0.00010 | $0.00228 |
Grade A, and why
okx-onchain-gateway scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 160 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Onchain OS Gateway
6 commands for gas estimation, transaction simulation, broadcasting, and order tracking.
Pre-flight Checks
Read
../okx-agentic-wallet/_shared/preflight.md. If that file does not exist, read_shared/preflight.mdinstead.
Skill Routing
- For swap quote and execution → use
okx-dex-swap - For market prices → use
okx-dex-market - For token search → use
okx-dex-token - For wallet balances / portfolio → use
okx-wallet-portfolio - For transaction broadcasting → use this skill (
okx-onchain-gateway)
Keyword Glossary
Users may use Chinese or informal terms. Map them to the correct commands:
| Chinese / Slang | English | Maps To |
|---|---|---|
| 预估 gas / 估 gas / gas 费多少 | estimate gas, gas cost | gateway gas or gateway gas-limit |
| 广播交易 / 发送交易 / 发链上 | broadcast transaction, send tx on-chain | gateway broadcast |
| 模拟交易 / 干跑 | simulate transaction, dry-run | gateway simulate |
| 交易哈希是否上链 / 是否确认 / 确认状态 / 交易状态 | tx hash confirmed, check tx status | gateway orders |
| 已签名交易 | signed transaction | --signed-tx param for gateway broadcast |
| gas 价格 / 当前 gas | current gas price | gateway gas |
| 支持哪些链 | supported chains for broadcasting | gateway chains |
Chain Name Support
The CLI accepts human-readable chain names and resolves them automatically.
| Chain | Name | chainIndex |
|---|---|---|
| XLayer | xlayer |
196 |
| Solana | solana |
501 |
| Ethereum | ethereum |
1 |
| Base | base |
8453 |
| BSC | bsc |
56 |
| Arbitrum | arbitrum |
42161 |
| Polygon | polygon |
137 |
This table is illustrative — the gateway supports 20+ chains. Run onchainos gateway chains for the authoritative list.
Command Index
| # | Command | Description |
|---|---|---|
| 1 | onchainos gateway chains |
Get supported chains for gateway |
| 2 | onchainos gateway gas --chain <chain> |
Get current gas prices for a chain |
| 3 | onchainos gateway gas-limit --from ... --to ... --chain ... |
Estimate gas limit for a transaction |
| 4 | onchainos gateway simulate --from ... --to ... --data ... --chain ... |
Simulate a transaction (dry-run) |
| 5 | onchainos gateway broadcast --signed-tx ... --address ... --chain ... |
Broadcast a signed transaction |
| 6 | onchainos gateway orders --address ... --chain ... |
Track broadcast order status |
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 160 lines · 96 tokens per session scan A 3d84406b5e67
okx-onchain-gateway is a skill published in the GitHub repository nirholas/three.ws (113 stars, last pushed today), licensed Apache-2.0. It adds 96 tokens to every session and 2,281 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
blockchain-cross-chain
Cross-chain protocols, IBC, LayerZero, Wormhole, Axelar, CCIP, bridges, atomic composability, shared sequencer, cross-chain message passing. Covers trust models (light clients, external validators, ZK proofs), bridge security, token representation (canonical, wrapped, native), relayer economics, and cross-chain…
blockchain-testing
Use this skill when asked about testing smart contracts, Foundry tests, Hardhat tests, fuzz testing, invariant testing, property-based testing, formal verification, audit preparation, integration testing for dApps, and blockchain testing patterns. Covers Foundry cheatcodes, Echidna fuzzing, Certora verification…
xpr-network-dev
XPR Network (formerly Proton) blockchain development - proton-tsc smart contracts, @proton CLI and web SDK, RPC and Hyperion queries, DeFi (MetalX, Alcor, LOAN), NFTs, the XPR Agents job board, node and Hyperion operations. Use for anything mentioning XPR, Proton, or @proton packages.
blockchain-management
Use this skill when asked about blockchain project management, DAO governance, multi-sig operations, treasury management, tokenomics design, and web3 project methodology. Languages: Solidity, TypeScript, Python. Covers DAO governance frameworks (Compound Governor, Aave, Snapshot, Tally), multi-sig wallet operations…
modernize-move
Detects and modernizes outdated Move V1 syntax, patterns, and APIs to Move V2+. Use when upgrading legacy contracts, migrating to modern syntax, or converting old patterns to current best practices. NOT for writing new contracts (use write-contracts) or fixing bugs.
write-contracts
Generates secure Aptos Move V2 smart contracts with Object model, Digital Asset integration, security patterns, and storage type guidance. Includes comprehensive storage decision framework for optimal data structure selection. Triggers on: 'write contract', 'create NFT collection', 'build marketplace', 'implement…