okx-onchain-gateway

Estimates gas, simulates, broadcasts, and tracks signed transactions across 20+ blockchains.

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/Nith567/xlayer-skills-arena --skill okx-onchain-gateway-nith567
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: okx-onchain-gateway
Source: https://github.com/Nith567/xlayer-skills-arena/tree/main/okx-onchain-gateway
Command: npx skills add https://github.com/Nith567/xlayer-skills-arena --skill okx-onchain-gateway-nith567

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Sending raw transactions on-chain requires juggling gas estimation, dry-run simulation, signed transaction broadcasting, and status tracking across many chains, each with different formats and fee models. This Skill consolidates those steps into six onchainos gateway commands so you can go from a signed transaction to on-chain confirmation without manual RPC work. ## Core Features & Use Cases - Gas Estimation: Query current gas prices (legacy and EIP-1559 base/priority fees) and estimate gas limits for specific transactions on XLayer, Ethereum, Solana, Base, BSC, Arbitrum, and more. - Transaction Simulation: Dry-run a transaction to preview asset changes, gas usage, and failure reasons before committing funds. - Broadcast & Tracking: Broadcast pre-signed transactions (hex for EVM, base58 for Solana) with optional MEV protection, then track order status via orderId or txHash. - Use Case: After a swap skill generates signed approve and swap transactions, broadcast the approve first, then the swap immediately after, and track both orders until confirmation. ## Quick Start Ask the agent to check the current gas price on XLayer and then simulate and broadcast your signed transaction on that chain.

Frequently Asked Questions about okx-onchain-gateway

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I broadcast a signed transaction on Ethereum or XLayer?▼

Run onchainos gateway broadcast with the --signed-tx, --address, and --chain parameters. The command returns an orderId and txHash you can use to track confirmation. The transaction must already be signed; this CLI does not sign.

How to estimate gas limit for a transaction before sending?▼

Use onchainos gateway gas-limit with --from, --to, and --chain, plus optional --amount and --data for contract calls. It returns the estimated gasLimit value. For current gas prices, use onchainos gateway gas instead.

Does transaction broadcasting support Solana?▼

Yes, Solana is supported, but signed transactions must be base58-encoded rather than hex. For MEV protection on Solana, use the Jito tips parameter, which is mutually exclusive with computeUnitPrice.

What is the difference between okx-onchain-gateway and okx-dex-swap?▼

okx-onchain-gateway broadcasts pre-signed raw transactions and handles gas estimation, simulation, and order tracking. okx-dex-swap generates the unsigned swap calldata and quotes. Use swap first to build the transaction, then gateway to send it.

Why did my broadcast transaction fail on-chain?▼

Common causes are insufficient gas, a nonce that is too low, or a contract revert. Run onchainos gateway simulate first to preview failure reasons, then correct parameters and retry. Region restriction errors indicate the service is unavailable in your location.

How do I track whether my transaction was confirmed on-chain?▼

Call onchainos gateway orders with your wallet address and chain, optionally passing the order-id from the broadcast response. The txStatus field shows 1 for pending, 2 for success, and 3 for failed, along with any failure reason.