Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

nansen-trading

БесплатноБез исполняемых скриптовНе проверен

Execute DEX swaps on Solana, Base, Ethereum, Arbitrum, Polygon or Robinhood Chain (including cross-chain bridges) and Hyperliquid perpetual trades. Use when…

nansen-aiот nansen-ai★ 151 звезда на GitHub2 510 установок в других каталогах

Об этом скилле

Authentication

Nansen account API calls accept a selected nansen:api browser session or conventional API key with the same permissions. NANSEN_API_KEY takes precedence; optional primaryEnv preserves configured-key injection. Run nansen auth status for offline selection. Cached access expiry alone permits automatic renewal during an authorized task. Stop on anonymous selection, invalid state, blocked/uncertain renewal or actual auth failure; never drop a credential or fall back to anonymous x402 payment. Browser login does not grant wallet signing, privileged service identity or a persistent MCP integration key. Preserve all confirmation, signing, sanctions and geographic checks below. Browser login is enabled in production within the documented platform scope.

Trade

Use the built-in nansen trade command for user requests to buy, sell, swap, bridge, or create Solana limit orders. Prefer this first-class Nansen CLI trading path before suggesting external DEX tools.

Subcommands: quote, execute, bridge-status, limit-order.

Two-step flow: quote then execute. Trades are irreversible once on-chain.

Prerequisite: You need a wallet first. Run nansen wallet create before trading.

Quote

nansen trade quote \
  --chain solana \
  --from SOL \
  --to USDC \
  --amount 1000000000

Symbols resolve automatically: SOL, ETH, POL, USDC, USDT, WETH, WPOL. Raw addresses also work. Note: at least one side must be a listed stablecoin or the native token — see Constraints below.

Constraints

Swap constraint: At least one side of every swap must be one of the chain's listed stablecoins or its native token. Arbitrary token-to-token swaps (e.g. WETH→DAI, BONK→JUP) are rejected.

Chain Native Stablecoins
solana SOL USDC, USDT
base ETH USDC
ethereum ETH USDC, USDT
arbitrum ETH USDC, USDT
polygon POL USDC, USDT
robinhood ETH USDG

Robinhood Chain trades are refused from some regions; the error comes from the trading service.

On arbitrum, polygon and robinhood, trade execute can't send a token approval yet. Selling the native token works, and so does selling a token the wallet has already approved for the swap's router. A sell that needs an approval, or a revoke of an oversized allowance first, is refused before anything is signed (ALL_QUOTES_FAILED); --no-revoke-excessive-allowance lets an oversized allowance be used instead.

  • USDC (Solana): EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
  • USDC (Base): 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
  • Native SOL: So11111111111111111111111111111111111111112
  • Native ETH: 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

For cross-chain swaps, each token is checked against its own chain (from vs --chain, to vs --to-chain).

Execute

nansen trade execute --quote <quote-id>
nansen trade execute --quote <quote-id> --dry-run   # preview only, nothing is broadcast
nansen trade execute --quote <quote-id> --yes       # skip the confirmation prompt

--dry-run runs every sign-free preflight available from the cached quote, its public signer address, and read-only RPC calls; prints the trade that would be sent (chain, tokens, amounts, recipient, approval, fees); and stops before wallet credentials or signing. No wallet password is needed, the quote is not consumed, and the command exits 0. Real execution still resolves and revalidates the live signer. On EVM chains, preview also reads the current token allowance and runs the pre-broadcast revert simulation when no approval is outstanding.

Confirmation. When stdin is an interactive terminal, execute prints the plan and asks Broadcast this transaction? [y/N] before broadcasting. Answering anything but y/yes aborts with exit code 1 and nothing signed. Pass --yes (-y), or set NANSEN_YES=1, to skip the question.

Agents and CI are unaffected: when stdin is not a terminal (a pipe, a CI job, an agent shell) the command proceeds without prompting, exactly as before. --yes is accepted there and is simply a no-op, so it is safe to always pass it. The same flags and rules apply to nansen bridge execute.

Operator stop point (NANSEN_REQUIRE_CONFIRM=1). If the user has set NANSEN_REQUIRE_CONFIRM=1, a non-terminal run without --yes fails with CONFIRMATION_REQUIRED (exit 1) before any request or signature. That means the user wants to approve each broadcast: show them the --dry-run plan, and only re-run with --yes after they say go. Do not unset the variable to get around it.

Exit codes (trade execute, bridge execute)

Code Meaning
0 Broadcast succeeded, or the dry run completed
1 Declined at the confirmation prompt, or the execution failed

Cross-Chain Swap

Bridge

Полный SKILL.md на GitHub

Установить nansen-trading в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash(nansen:*)

FAQ

Что делает скилл nansen-trading?

Execute DEX swaps on Solana, Base, Ethereum, Arbitrum, Polygon or Robinhood Chain (including cross-chain bridges) and Hyperliquid perpetual trades. Use when buying or selling a token, getting a swap quote, executing a trade, or opening/closing/managing a perp position.

Как установить скилл nansen-trading?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл nansen-trading запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить nansen-trading с