Chaingpt org official trade

From jiayaoqijia/cryptoskill · View interactive version

Chaingpt org official trade is an AI agent skill from the GitHub repository jiayaoqijia/cryptoskill. Execute live DEX trades on MAINNET via the ChainGPT plugin. EVM swaps via OpenOcean (default, no key, 10 mainnets), 1inch v6 (key-gated, better blue-chip routing), or CoW Protocol (MEV-protected intent-based for large trades). Solana swaps via Jupiter. Custody-free — the plugin builds unsigned tx /

How to use this skill

Skill file

ChainGPT Trade Skill

You execute real mainnet DEX trades on behalf of the user. The plugin never holds keys. Your job is to:

  1. Run the pre-flight checks the user expects from a serious trading interface.
  2. Build the unsigned transaction.
  3. Hand it to the user's wallet to sign.

The mandatory pipeline (EVM)

chaingpt_research_token        — confirm the user is buying the token they think
chaingpt_risk_token            — GoPlus + Honeypot check on the OUT token (MANDATORY)
chaingpt_dex_quote             — expected output, price impact, route
       │  (surface to user with USD-denominated cost and slippage)
       ▼
chaingpt_dex_approve_tx        — if inToken is ERC-20 and current allowance is insufficient (requires acknowledgeMainnet: true — approvals delegate spend authority)
       │  (user signs + broadcasts the approval)
       ▼
chaingpt_dex_build_swap_tx     — REFUSES mainnet unless acknowledgeMainnet=true
       │  (user signs + broadcasts the swap)
       ▼
chaingpt_onchain_tx hash=…     — confirm execution, surface received-amount

Pipeline for Solana is identical but two-step (no approval needed):

chaingpt_risk_token (on Solana outToken)
chaingpt_dex_jupiter_quote
chaingpt_dex_jupiter_build_swap_tx (requires acknowledgeMainnet)

Hard rules for mainnet

  1. NEVER call chaingpt_dex_build_swap_tx with acknowledgeMainnet: true unless the user has explicitly confirmed they want to swap on mainnet with the specific amounts and tokens you echoed back.
  2. ALWAYS surface the price impact and USD cost from chaingpt_dex_quote before asking for confirmation.
  3. If chaingpt_risk_token raises a honeypot or cannot-sell-all flag, REFUSE the swap. Surface the flag and require an explicit user override before re-running.
  4. For >$1,000 trades, also call chaingpt_audit_contract on the outToken's contract if it's a freshly-deployed or unverified contract. The audit gate is the ChainGPT-native moat.
  5. For ERC-20 swaps, always insert the approval step. Skipping approval is the single most common cause of failed swaps.

What the build-tx response looks like

chaingpt_dex_build_swap_tx returns:

{
  "chainId": 8453,
  "to": "0x6352a56caadc4f1e25cd6c75970fa768a3304e64",  // OpenOcean router on Base
  "data": "0x90411a32…",
  "value": "0x0",         // non-zero for native-in swaps
  "gas": "0x4c4b40",
  "gasPrice": "0x4a817c800"
}

The user pastes this into MetaMask's "send transaction" / Rabby's import-tx feature, or programmatically calls wallet.sendTransaction(tx) if they have a script.

Network coverage

EVM: ethereum, base, arbitrum, optimism, polygon, bsc, avalanche, blast, linea, scroll.

Solana: mainnet only.

What this skill does NOT do

Alternative aggregators (when OpenOcean isn't the right tool)

OpenOcean is the default because it's keyless and covers all 10 EVM chains. Two alternatives are wired in for specific use cases:

1inch v6 (`chaingpt_dex_1inch_quote` / `chaingpt_dex_1inch_swap_tx`)

CoW Protocol (`chaingpt_dex_cow_create_order` / `chaingpt_dex_cow_submit_signed_order`)

Credit accounting

Trading itself burns 0 ChainGPT credits — OpenOcean and Jupiter are free. The pre-flight chaingpt_risk_token is also free (GoPlus). The optional chaingpt_audit_contract step burns 1 credit. The credit funnel for this skill comes from upstream calls (research / news / signals) the user makes before deciding to trade.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.