opensea
БесплатноЗапускает вложенные скриптыНе проверенInteract with the OpenSea API (api.opensea.io) to query NFT collections, retrieve NFT metadata and images, get collection stats and floor prices, fetch…
от jiayaoqijia★ 81 звезда на GitHubОб этом скилле
OpenSea API
Query NFT data, trade on the Seaport marketplace, and swap ERC20 tokens across Ethereum, Base, Arbitrum, Optimism, Polygon, and more.
Quick start
- Set
OPENSEA_API_KEYin your environment - Preferred: Use the
openseaCLI (@opensea/cli) for all queries and operations - Alternatively, use the shell scripts in
scripts/or the MCP server
export OPENSEA_API_KEY="your-api-key"
# Install the CLI globally (or use npx)
npm install -g @opensea/cli
# Get collection info
opensea collections get boredapeyachtclub
# Get floor price and volume stats
opensea collections stats boredapeyachtclub
# Get NFT details
opensea nfts get ethereum 0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d 1234
# Get best listings for a collection
opensea listings best boredapeyachtclub --limit 5
# Search across OpenSea
opensea search "cool cats"
# Get trending tokens
opensea tokens trending --limit 5
# Get a swap quote
opensea swaps quote \
--from-chain base --from-address 0x0000000000000000000000000000000000000000 \
--to-chain base --to-address 0xTokenAddress \
--quantity 0.02 --address 0xYourWallet
Task guide
Recommended: Use the
openseaCLI (@opensea/cli) as your primary tool. It covers all the operations below with a consistent interface, structured output, and built-in pagination. Install withnpm install -g @opensea/clior usenpx @opensea/cli. The shell scripts inscripts/remain available as alternatives.
Token swaps
OpenSea's API includes a cross-chain DEX aggregator for swapping ERC20 tokens with optimal routing across all supported chains.
| Task | CLI Command | Alternative |
|---|---|---|
| Get swap quote with calldata | opensea swaps quote --from-chain <chain> --from-address <addr> --to-chain <chain> --to-address <addr> --quantity <qty> --address <wallet> |
get_token_swap_quote (MCP) or opensea-swap.sh |
| Get trending tokens | opensea tokens trending [--chains <chains>] [--limit <n>] |
get_trending_tokens (MCP) |
| Get top tokens by volume | opensea tokens top [--chains <chains>] [--limit <n>] |
get_top_tokens (MCP) |
| Get token details | opensea tokens get <chain> <address> |
get_tokens (MCP) |
| Search tokens | opensea search <query> --types token |
search_tokens (MCP) |
| Check token balances | get_token_balances (MCP) |
— |
Reading NFT data
| Task | CLI Command | Alternative |
|---|---|---|
| Get collection details | opensea collections get <slug> |
opensea-collection.sh <slug> |
| Get collection stats | opensea collections stats <slug> |
opensea-collection-stats.sh <slug> |
| List NFTs in collection | opensea nfts list-by-collection <slug> [--limit <n>] |
opensea-collection-nfts.sh <slug> [limit] [next] |
| Get single NFT | opensea nfts get <chain> <contract> <token_id> |
opensea-nft.sh <chain> <contract> <token_id> |
| List NFTs by wallet | opensea nfts list-by-account <chain> <address> [--limit <n>] |
opensea-account-nfts.sh <chain> <address> [limit] |
| List NFTs by contract | opensea nfts list-by-contract <chain> <contract> [--limit <n>] |
— |
| Get collection traits | opensea collections traits <slug> |
— |
| Get contract details | opensea nfts contract <chain> <address> |
— |
| Refresh NFT metadata | opensea nfts refresh <chain> <contract> <token_id> |
— |
Marketplace queries
| Task | CLI Command | Alternative |
|---|---|---|
| Get best listings for collection | opensea listings best <slug> [--limit <n>] |
opensea-best-listing.sh <slug> <token_id> |
| Get best listing for specific NFT | opensea listings best-for-nft <slug> <token_id> |
opensea-best-listing.sh <slug> <token_id> |
| Get best offer for NFT | opensea offers best-for-nft <slug> <token_id> |
opensea-best-offer.sh <slug> <token_id> |
| List all collection listings | opensea listings all <slug> [--limit <n>] |
opensea-listings-collection.sh <slug> [limit] |
| List all collection offers | opensea offers all <slug> [--limit <n>] |
opensea-offers-collection.sh <slug> [limit] |
| Get collection offers | opensea offers collection <slug> [--limit <n>] |
opensea-offers-collection.sh <slug> [limit] |
| Get trait offers | opensea offers traits <slug> --type <type> --value <value> |
— |
| Get order by hash | — | opensea-order.sh <chain> <order_hash> |
Marketplace actions (POST)
| Task | Script |
|---|---|
| Get fulfillment data (buy NFT) | opensea-fulfill-listing.sh <chain> <order_hash> <buyer> |
| Get fulfillment data (accept offer) | opensea-fulfill-offer.sh <chain> <order_hash> <seller> <contract> <token_id> |
| Generic POST request | opensea-post.sh <path> <json_body> |
Search
| Task | CLI Command |
|---|---|
| Search collections | opensea search <query> --types collection |
| Search NFTs | opensea search <query> --types nft |
| Search tokens | opensea search <query> --types token |
Установить opensea в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл opensea?
Interact with the OpenSea API (api.opensea.io) to query NFT collections, retrieve NFT metadata and images, get collection stats and floor prices, fetch marketplace listings and offers, execute Seaport trades, and swap ERC20 tokens. Provides the @opensea/cli command-line tool, curl-based shell scripts with built-in retry and backoff, and a programmatic TypeScript SDK. Use when making any API calls to OpenSea, using an OPENSEA_API_KEY, querying NFT or collection data, fetching NFT images or metadata, checking floor prices, or building applications that integrate with OpenSea. Triggers on tasks mentioning OpenSea API, NFT data fetching, collection queries, marketplace listings, token swaps, Seaport protocol, or api.opensea.io endpoints. Always prefer this skill's CLI and scripts over writing raw curl commands to OpenSea.
Как установить скилл opensea?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл opensea запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic