okx-onchain-gateway

Broadcast pre-signed transactions and estimate gas across EVM and non-EVM chains.

3|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/Pieverse-Eng/purrfect-skills --skill okx-onchain-gateway-pieverse-eng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: okx-onchain-gateway
Source: https://github.com/Pieverse-Eng/purrfect-skills/tree/main/okx/vendor/okx-onchain-gateway
Command: npx skills add https://github.com/Pieverse-Eng/purrfect-skills --skill okx-onchain-gateway-pieverse-eng

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides a secure, final-mile gateway to broadcast pre-signed transactions, estimate gas and gas limits, simulate transactions, and track broadcast orders across multiple chains so users can reliably move signed transactions on-chain without handling node management or low-level RPCs.

Core Features & Use Cases

  • Gas estimation and pricing: Query current gas prices and EIP-1559 fields for EVM chains and priority fee tiers for non-EVM chains.
  • Simulation and safety checks: Dry-run transactions to detect reverts, estimate gasUsed, and surface failure reasons before committing to on-chain broadcasts.
  • Broadcasting and tracking: Broadcast pre-signed hex or base58 transactions, receive an orderId and txHash, and poll order status for confirmations and failures.
  • Cross-chain & workflows: Supports EVM and non-EVM chains (Ethereum, Solana, Base, BSC, Arbitrum, Polygon, XLayer), batch broadcasts (approve+swap flows), and optional MEV protection parameters.
  • Operational integrity: Includes preflight installer verification, checksum validation, and guidance for handling rate limits and region restrictions.
  • Use Case: Finalize a swap by receiving signed transaction bytes from a swap skill, broadcasting them safely with MEV protection where supported, and tracking confirmation status via orderId.

Quick Start

Broadcast a signed Ethereum transaction by running onchainos gateway broadcast --signed-tx <signed_hex> --address 0xYourWallet --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 across multiple chains like Ethereum and Solana?

Broadcast signed transactions by submitting pre-signed hex or base58 bytes with chain and address parameters to receive an orderId and txHash. This gateway supports cross-chain broadcasting across EVM and non-EVM networks like Ethereum, Solana, Base, and Arbitrum without managing nodes directly.

Can I simulate an on-chain transaction to check for reverts before broadcasting?

Yes, you can perform dry-run simulation checks to detect reverts, estimate gasUsed, and surface failure reasons before committing. This safety check ensures your signed transaction will execute correctly on-chain prior to the final broadcast.

Does this onchain gateway support MEV protection for swap finalization?

Yes, the gateway supports optional MEV protection flags when broadcasting transactions. This is particularly useful for swap finalization workflows, allowing you to submit signed transaction bytes safely with MEV protection where supported by the chain.

How do I estimate gas prices and EIP-1559 fields for EVM chains?

Query current gas prices and EIP-1559 fields for EVM chains, or priority fee tiers for non-EVM chains, using the gateway's gas estimation feature. This provides accurate gas pricing data needed to configure transactions before signing and broadcasting.

What is the best way to track an on-chain broadcast order status for confirmations?

Track broadcast orders by polling the order status using the orderId returned after submission. This allows you to monitor confirmation status and detect failures across supported chains like BSC, Polygon, and XLayer without handling low-level RPCs.

Why does my onchain transaction broadcast fail the installer integrity check?

Broadcasts fail integrity checks when preflight installer verification and checksum validation detect mismatches or tampering. The gateway enforces these operational integrity checks before executing commands to ensure secure transaction processing.