Skip to content

Document OKX Wallet + X Layer x402 path#11

Open
lowjiansheng wants to merge 4 commits into
messari:masterfrom
lowjiansheng:worktree-okx-wallet
Open

Document OKX Wallet + X Layer x402 path#11
lowjiansheng wants to merge 4 commits into
messari:masterfrom
lowjiansheng:worktree-okx-wallet

Conversation

@lowjiansheng

Copy link
Copy Markdown
Contributor

Summary

  • API-Gateway #309 added x402 settlement on X Layer via the OKX facilitator (USDT on eip155:196 mainnet, USDG on eip155:1952 testnet). The Coinbase facilitator does not support X Layer, so the wallet a user has determines which chain we route them to.
  • SKILL.md: wallet/chain pairing in the auth decision tree + a new "OKX Wallet → X Layer" alternative setup path (installed via npx skills add okx/onchainos-skills). Coinbase Wallet → Base USDC remains the default.
  • openclaw-skill/SKILL.md: added a "Supported settlement chains" table (Base, Solana, X Layer mainnet/testnet) and a wallet-pairing note. The X402_PRIVATE_KEY flow itself is unchanged — same Python client signs for whichever EVM chain the facilitator returns.
  • claude/messari.skill: repackaged from the updated SKILL.md (also resyncs a small pre-existing description drift between the ZIP and the root file).

Routing rules now documented

  • User mentions OKX Wallet → set up on X Layer (OKX path).
  • User mentions X Layer → set up with OKX Wallet (OKX path).
  • Otherwise → Coinbase Wallet on Base.

Test plan

  • In Claude Desktop / Claude Code, confirm that a fresh "I want to use Messari with OKX Wallet" prompt walks the user through npx skills add okx/onchainos-skills and the X Layer funding step, not the Coinbase flow.
  • Reverse direction: "I want to settle on X Layer" → agent suggests OKX Wallet, not Coinbase.
  • Default unchanged: a generic "set me up for x402" still routes to Coinbase Wallet → Base USDC.
  • Open claude/messari.skill via the 1-click installer and verify the packaged SKILL.md matches the repo file and renders correctly in-client.
  • OpenClaw: verify the new "Supported settlement chains" table renders and the existing Python x402 example still works against a Base endpoint (no regression).

API-Gateway now settles x402 on X Layer via the OKX facilitator
(eip155:196 mainnet USDT / eip155:1952 testnet USDG). Surface this in
the skills so agents route OKX Wallet users to X Layer and X Layer
requests to OKX Wallet — Coinbase's facilitator does not cover X Layer.

- SKILL.md: wallet/chain pairing in the auth tree and a new "OKX Wallet
  → X Layer" alternative setup path (via `npx skills add okx/onchainos-skills`),
  keeping Coinbase/Base as the default.
- openclaw-skill/SKILL.md: add Supported settlement chains table (Base,
  Solana, X Layer mainnet, X Layer testnet) and a wallet-pairing note.
  The X402_PRIVATE_KEY flow is unchanged.
- claude/messari.skill: repackaged from SKILL.md.
The OKX onchainos wallet skill (npx skills add okx/onchainos-skills) is
not installed by default, so an agent could silently fall back to
Coinbase/Base when a user actually wants X Layer. Wire the install into
the auth decision tree explicitly:

- "no wallet + no API key" leaf now branches by intent: X Layer/OKX →
  install onchainos; otherwise → install Coinbase payments-mcp.
- Add an anti-misroute guardrail: install the wallet matching the chain
  the user wants; don't default to the other chain just because its
  connector is present. Note that onchainos isn't installed by default
  and only the user can run the npx install + sign-in.

claude/messari.skill repackaged from SKILL.md.
Testnet was only documented for the OKX/X Layer path (Base and Solana
are mainnet-only), and the testnet asset was wrong (listed USDG, but the
gateway settles testnet in USD₮0). Rather than fix an inconsistency no
other chain has, remove the testnet references and keep X Layer
mainnet-only (eip155:196, USD₮0).

claude/messari.skill repackaged from SKILL.md.
Mirrors the testnet removal already done in SKILL.md — the OpenClaw
settlement-chains table still listed an X Layer testnet (eip155:1952,
USDG) row. Remove it so no skill artifact references testnet; X Layer is
documented mainnet-only (eip155:196, USD₮0), consistent with Base/Solana.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants