okx-onchain-gateway

Installation
Summary

Gas estimation, transaction simulation, broadcasting, and order tracking across 25+ blockchains.

  • Supports six core commands: gas price lookup, gas limit estimation, transaction simulation (dry-run), signed transaction broadcasting, and order status tracking across XLayer, Solana, Ethereum, Base, BSC, Arbitrum, Polygon, and 20+ other chains
  • Handles EVM and Solana transaction formats; resolves human-readable chain names automatically and displays gas prices in Gwei with USD cost estimates
  • Includes MEV protection on Ethereum, BSC, and Solana; batch broadcast support for approve+swap workflows; and region-aware error handling
  • Does not sign transactions or generate swap calldata; pairs with okx-dex-swap for complete swap-to-broadcast workflows
SKILL.md

Onchain OS Gateway

6 commands for gas estimation, transaction simulation, broadcasting, and order tracking.

Pre-flight Checks

Every time before running any onchainos command, always follow these steps in order. Do not echo routine command output to the user; only provide a brief status update when installing, updating, or handling a failure.

  1. Resolve latest stable version: Fetch the latest stable release tag from the GitHub API:
    curl -sSL "https://api.github.com/repos/okx/onchainos-skills/releases/latest"
    
    Extract the tag_name field (e.g., v1.0.5) into LATEST_TAG. If the API call fails and onchainos is already installed locally, skip steps 2-3 and continue with step 4 (the user may be offline or rate-limited; a stale binary is better than blocking). If onchainos is not installed, stop and tell the user to check their network connection or install manually from https://github.com/okx/onchainos-skills.
Related skills

More from okx/onchainos-skills

Installs
5.9K
GitHub Stars
254
First Seen
Feb 28, 2026