okx-onchain-gateway

Broadcast signed blockchain transactions and return order tracking identifiers.

318|65|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/okx/onchainos-skills --skill okx-onchain-gateway
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: okx-onchain-gateway
Source: https://github.com/okx/onchainos-skills/tree/main/skills/okx-onchain-gateway
Command: npx skills add https://github.com/okx/onchainos-skills --skill okx-onchain-gateway

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill handles the final-mile on-chain operations that developers and traders need to complete transactions: estimating gas, simulating transactions to detect failures, broadcasting pre-signed transactions, and tracking broadcast orders across many chains. It removes the manual, error-prone steps of preparing, testing, and sending transactions and surfaces clear diagnostics and order tracking identifiers.

Core Features & Use Cases

  • Gas price and gas-limit estimation for EVM and non-EVM chains to choose fees and avoid failed transactions.
  • Transaction simulation (dry-run) to detect reverts, estimate gasUsed, and inspect asset changes before committing on-chain.
  • Broadcast signed transactions and track orders by returning an orderId and txHash so the user can monitor final settlement status.
  • Use case: Simulate a complex contract interaction, adjust fees based on suggested base fee and priority fee, broadcast the signed payload, then poll order status until confirmed.

Quick Start

Ask the assistant to broadcast a pre-signed transaction by providing the signed payload, your wallet address, and the chain, for example: onchainos gateway broadcast --signed-tx <signed_hex_or_base58> --address <your_address> --chain ethereum

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 Solana?

To broadcast a signed transaction, provide the signed payload in hex or base58, your sender wallet address, and the target chain name. The gateway processes the broadcast and returns an orderId and txHash for tracking settlement status.

What is transaction dry-run simulation and how does it prevent failed broadcasts?

Transaction dry-run simulation executes a test broadcast to detect reverts, estimate gasUsed, and inspect asset changes before committing on-chain. This simulation surfaces failure diagnostics, allowing you to adjust parameters and avoid failed transactions.

Can I estimate gas limits and EIP-1559 fees for multiple chains?

Yes, you can estimate gas limits and query gas prices for EVM and non-EVM chains. The estimation provides suggested base fees and priority fees for EIP-1559 fee handling across supported networks like Arbitrum, Base, and Polygon.

Does the onchain gateway support transaction broadcasting on XLayer and BSC?

Yes, the onchain gateway supports transaction broadcasting, gas estimation, and order tracking on XLayer and BSC, alongside Ethereum, Solana, Base, Arbitrum, and Polygon, handling both EVM and non-EVM environments.

How do I track an order status after broadcasting a pre-signed raw transaction?

After broadcasting a pre-signed raw transaction, you track the order status by polling the returned orderId and txHash. These identifiers allow you to monitor the transaction until final settlement is confirmed on the blockchain.

Why do I need to provide a sender wallet address to broadcast a signed transaction?

Providing the sender wallet address is required to broadcast a signed transaction because it verifies the transaction origin and links the resulting orderId and txHash to the correct account for accurate order tracking and simulation diagnostics.