Okx Verifiable Onchain Gateway logo

Okx Verifiable Onchain Gateway

Organization
primus-labs
okx-verifiable-onchain-gateway

Plan and apply verifiable gateway-related calls for OKX OnchainOS-style workflows using Primus zkTLS. Use when the user asks for supported chains, gas snapshots, transaction simulation summaries, broadcast responses, or order tracking and wants the request/response pair optionally backed by a proof. Distinguish clearly between proving the API response and proving final on-chain settlement.

Overview

Publisherprimus-labs
Repositoryskills
Skill nameokx-verifiable-onchain-gateway
Stars
35
Forks
10
Bundled files
1
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by primus-labs on GitHub. Read the source before you install it.

Installation

Install the Okx Verifiable Onchain Gateway AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/primus-labs/skills/tree/main/onchainos-verifiable-skills/skills/okx-verifiable-onchain-gateway
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/primus-labs/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/onchainos-verifiable-skills/skills/okx-verifiable-onchain-gateway .claude/skills/okx-verifiable-onchain-gateway
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Okx Verifiable Onchain Gateway in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Okx Verifiable Onchain Gateway on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Okx Verifiable Onchain Gateway is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

OKX Verifiable Onchain Gateway

This is a simulation-first gateway proof skill, but action-oriented gateway endpoints may also be attested if the user wants them.

Current status

  • supported chains: good candidate
  • gas price snapshot: partial candidate
  • gas limit estimation: partial candidate
  • simulation summary: partial candidate
  • broadcast: opt-in proof candidate
  • order tracking: opt-in proof candidate

Shared references

  • ../../references/primus-zktls-patterns.md
  • ../../references/response-contracts.md
  • ../../references/fallback-decision-trees.md
  • ../../references/verification-choice-prompts.md
  • ../../references/interaction-examples.md
  • ../../references/endpoint-catalog.md
  • ../../references/limitations.md

How to use this skill

  1. Distinguish read-only gateway queries from transaction execution.
  2. Prefer proofs for:
    • supported chain metadata
    • one gas snapshot
    • one bounded simulation result
  3. For broadcast and order endpoints, ask whether the user wants:
    • fast path
    • request/response proof
    • request/response proof plus chain finality check
  4. Treat tx hash confirmation and settlement as chain-truth problems, not zkTLS problems alone.

First-release guidance

  • Good proof target:
    • "Prove the current gas snapshot on chain X"
  • Possible proof target:
    • "Prove that this simulated call returned success and gas estimate Y"
  • Higher-cost proof target:
    • "Prove the broadcast API response"
  • Weak proof target:
    • "Prove that my transaction settled" without a chain-native finality check

Concrete endpoint templates

Supported chains

  • Endpoint: GET https://web3.okx.com/api/v6/dex/pre-transaction/supported/chain
  • Good proof fields:
    • $.data[0].chainIndex
    • $.data[0].name
    • $.data[0].shortName

Gas price

  • Endpoint: GET https://web3.okx.com/api/v6/dex/pre-transaction/gas-price
  • Query pattern:
text
?chainIndex=1
  • Good proof fields for EVM:
    • $.data[0].normal
    • $.data[0].min
    • $.data[0].max
    • $.data[0].supportEip1559
    • $.data[0].eip1599Protocol.suggestBaseFee
    • $.data[0].eip1599Protocol.proposePriorityFee

Gas limit

  • Endpoint: POST https://web3.okx.com/api/v6/dex/pre-transaction/gas-limit
  • Good proof field:
    • $.data[0].gasLimit

Simulate

  • Endpoint: GET https://web3.okx.com/api/v6/dex/pre-transaction/simulate
  • Important note:
    • this API is documented as whitelisted-only
  • Good proof fields:
    • $.data[0].intention
    • $.data[0].gasUsed
    • $.data[0].failReason
    • $.data[0].assetChange[0].symbol
    • $.data[0].assetChange[0].rawValue

Broadcast and orders

  • Allow as opt-in proof targets for the request/response pair.
  • Always pair them with a finality note.
  • Treat tx hash and chain confirmation as the stronger truth source for settlement.

Output contract

Prefer these reply modes:

  • attested for supported-chain metadata
  • partial for gas snapshots, gas-limit estimates, and simulation summaries
  • attested or partial for broadcast and order responses when the user explicitly wants proof
  • fallback when the user prefers speed or when finality is the real need

For simulation replies, separate:

  • verified subclaim: intention, gas used, fail reason, or first asset change
  • unverified remainder: final settlement outcome

For broadcast or orders replies, also state:

  • proof scope: request/response pair
  • finality note: tx hash and chain confirmation still determine settlement

Fallback policy

For broadcast or tracking:

  1. ask whether the user wants proof for the gateway response
  2. if yes, prove the request/response pair
  3. rely on transaction hash and chain confirmation for final settlement

Decision tree

  1. Is the request about supported chains only?
    • yes -> attested
  2. Is it one gas snapshot, gas-limit estimate, or one simulation summary?
    • yes -> partial
  3. Is it broadcast confirmation or order tracking?
    • ask whether the user wants a fast path or a request/response proof
  4. Is the user actually asking about final settlement?
    • use chain-native confirmation and present gateway proofs as supplementary

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Okx Verifiable Onchain Gateway AI skill do?

Plan and apply verifiable gateway-related calls for OKX OnchainOS-style workflows using Primus zkTLS. Use when the user asks for supported chains, gas snapshots, transaction simulation summaries, broadcast responses, or order tracking and wants the request/response pair optionally backed by a proof. Distinguish clearly between proving the API response and proving final on-chain settlement.

Why use Okx Verifiable Onchain Gateway on TypingMind?

Because you install it once and use it with any model. Okx Verifiable Onchain Gateway is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Okx Verifiable Onchain Gateway in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/primus-labs/skills/tree/main/onchainos-verifiable-skills/skills/okx-verifiable-onchain-gateway. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Okx Verifiable Onchain Gateway?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Okx Verifiable Onchain Gateway?

As many as you like. As long as a model supports skills, you can use Okx Verifiable Onchain Gateway with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Okx Verifiable Onchain Gateway AI skill free?

It is published on GitHub by primus-labs. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇