Skip to content

internet-court/internet-court-skill / vendored/okx/okx-agentic-wallet

okx-agentic-wallet

Unverified

OKX Agentic Wallet — the single skill for the user's wallet and on-chain execution. Use it whenever the user wants to operate their wallet or execute an on-chain action, including: login & accounts, balance / holdings, wallet address / deposit / receive, send / transfer, contract calls (approve / deposit / withdraw), transaction history & status, message signing, wallet export & policy; pay gas with a stablecoin (Gas Station, Solana); swap / trade / buy / sell / convert, get a quote; cross-chain bridge & track arrival; limit orders (buy dip / take profit / stop loss / buy above) plus cancel / list / resume them; broadcast / gas / simulate / track a transaction; look up any public address's holdings; security scanning (token / honeypot 蜜罐 / 貔貅, DApp phishing, tx & signature checks, approvals); audit log. Once matched, follow this skill's Intent Routing to dispatch to the exact action.

references/wallet-plugin-preflight.md

View on GitHub
# Third-Party Plugin Pre-flight (Solana)

> Load before dispatching a third-party Solana DeFi plugin command that performs an on-chain write.

Third-party Solana DeFi plugins (e.g. `kamino-plugin`, `raydium-plugin`) call `onchainos wallet contract-call --force` internally. Pre-flight Gas Station status on Solana before invoking the plugin's write command.

Gas Station is Solana-only: the Relayer is the native fee payer, and gas is debited via an SPL stablecoin transfer inside the same multi-signer transaction.

## Pre-flight checklist

Before a plugin command that performs an on-chain write (`--confirm` / `execute` / `--broadcast`):

1. Resolve `<from>` from the plugin invocation.
2. Run:
   ```bash
   onchainos wallet gas-station status --chain solana [--from <solana_address>]
   ```
3. Branch on `data.recommendation`:

| Recommendation | Action |
|---|---|
| `READY` | Proceed to plugin invocation. |
| `ENABLE_GAS_STATION` | Render `references/gas-station.md` Scene A using `data.tokenList`. On consent, run `onchainos wallet gas-station enable --chain solana`. To pin the picked token, also run `onchainos wallet gas-station update-default-token --chain solana --gas-token-address <picked>`. Then proceed to the plugin command. |
| `INSUFFICIENT_ALL` | Render `references/gas-station.md` Scene E. |
| `HAS_PENDING_TX` | Tell the user to wait for the pending GS tx to clear. |

## Skip pre-flight when

- The plugin invocation is dry-run / simulation.
- The plugin command is read-only (e.g. `kamino-plugin positions`, `health-factor`, `reserves`, `quickstart`).
- `status` already returned `READY` for this `(solana, from)` tuple in the current conversation.

## Reactive recovery (plugin already failed)

When a plugin returns a vague error, follow `references/gas-station.md` → "Plugin Bail Recovery" (authoritative). If the plugin swallowed stdout so no Confirming JSON is visible, run `onchainos wallet gas-station status --chain solana [--from <addr>]` and branch per the Pre-flight checklist above. Exit-code quick-reference:

## Exit codes (seen through a plugin)

| Exit | Meaning | Agent action |
|---|---|---|
| `0` | Success | Continue. |
| `1` | Real error | Surface to user. |
| `2` | Gas Station Confirming — stdout carries `"confirming": true` + `"scene"` (Scene A / Scene C). Recoverable. | Parse `scene`, dispatch via "Plugin Bail Recovery", re-invoke the same plugin command verbatim. |
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall