opensea
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseOpenSea (NFT Marketplace Data + Seaport Trades)
OpenSea(NFT市场数据 + Seaport交易)
OpenSea is the dominant NFT marketplace. This skill queries marketplace data — listings, offers, sales / events, floor prices, drops, traits — and executes Seaport trades via the official . For NFT metadata (name, image, traits, ownership) outside the marketplace context, use Alchemy's NFT API instead. For pure cross-chain token swaps (no marketplace context), use the ecosystem skill.
@opensea/clilifi| Primary tool | |
| REST API base | |
| Auth | |
| Optional Privy | |
| Chains | Ethereum, Base, Arbitrum, Optimism, Polygon, and more |
OpenSea是主流的NFT交易市场。本技能可查询市场数据——挂单、报价、交易/事件、地板价、发售活动、属性——并通过官方执行Seaport交易。若需获取市场场景外的NFT元数据(名称、图片、属性、所有权),请使用Alchemy的NFT API。对于纯跨链代币兑换(无NFT市场需求),请使用生态技能。
@opensea/clilifi| 核心工具 | |
| REST API基础地址 | |
| 身份验证 | |
| 可选Privy配置 | 写入/履约流程需 |
| 支持链 | Ethereum、Base、Arbitrum、Optimism、Polygon等 |
When to use this skill
何时使用该技能
Use when any of the following are true:
opensea- The user wants marketplace data — listings, offers, floor prices, sales history, collection stats
- The user wants to buy / sell an NFT via Seaport (fulfill listing or accept offer)
- The user wants to search across OpenSea (collections / NFTs / tokens / accounts)
- The user wants to monitor events — sales, transfers, mints, listings, offers — for a collection or NFT
- The user wants to explore drops or build a mint transaction for a SeaDrop contract
- The user wants token discovery in the OpenSea-curated context (top, trending, by group)
当满足以下任一条件时,使用技能:
opensea- 用户需要市场数据——挂单、报价、地板价、交易历史、藏品统计
- 用户希望通过Seaport买卖NFT(履约挂单或接受报价)
- 用户希望在OpenSea内搜索(藏品/NFT/代币/账户)
- 用户希望监控事件——藏品或NFT的交易、转移、铸造、挂单、报价、属性报价、藏品报价
- 用户希望探索发售活动或为SeaDrop合约构建铸造交易
- 用户希望在OpenSea curated语境下进行代币发现(热门、趋势、分组)
When NOT to use this skill (handoff)
何时不使用该技能(转接)
| Need | Use instead |
|---|---|
| NFT metadata (name, image, traits, ownership lookup) outside a marketplace context | |
| Pure cross-chain token swap (no NFT marketplace need) | |
| Token spot prices for valuation | |
| Token metadata, search, list by chain (general) | |
| Current wallet balances (token + native) | |
| Transaction history (transfers in / out) | |
Live blockchain reads (block #, gas, | |
| Pre-execution simulation | |
| Account abstraction (bundlers, gas managers) | |
| Smart wallet / embedded wallet flows | |
| 需求 | 替代方案 |
|---|---|
| 市场场景外的NFT元数据读取(名称、图片、属性、所有权查询) | |
| 纯跨链代币兑换(无NFT市场需求) | |
| 用于估值的代币现货价格 | |
| 通用代币元数据、搜索、按链列出 | |
| 当前钱包余额(代币+原生币) | |
| 交易历史(转入/转出) | |
实时区块链读取(区块号、Gas、 | |
| 执行前模拟 | |
| 账户抽象(打包器、Gas管理器) | |
| 智能钱包/嵌入式钱包流程 | |
Scope contract
范围约定
This skill covers ():
scope_in- Marketplace data: ,
opensea listings best,opensea listings best-for-nft,opensea offers best-for-nft,opensea offers all,opensea collections stats,opensea collections trending,opensea collections topopensea collections traits - Seaport trades: fulfillment data for buying () and selling (
opensea-fulfill-listing.sh); creating listings / offers viaopensea-fulfill-offer.shwith the Seaport order structureopensea-post.sh - Events / monitoring: ,
opensea events list,events by-collection,events by-nft— sale / transfer / mint / listing / offer / trait_offer / collection_offerevents by-account - Drops + minting: ,
opensea drops list,opensea drops getopensea drops mint - Search: across collections / NFTs / tokens / accounts
opensea search - Account utilities: (ENS / username / address)
opensea accounts resolve
This skill does NOT cover ():
scope_out- General NFT metadata reads (name, image, traits, ownership, contract metadata) outside the marketplace context → handoff: (NFT API). OpenSea's NFT data is marketplace-flavored and rate-limited; Alchemy's NFT API is broader and cheaper for pure metadata.
alchemy-api - Pure cross-chain token swaps (no NFT marketplace use case) → handoff: (ecosystem skill). OpenSea's swap aggregator works, but
lificovers more bridges and chains.lifi - Token spot prices for valuation / display → handoff: (Prices API)
alchemy-api - General token metadata, search, list → handoff: (Token API)
alchemy-api - Wallet balances (token + native) → handoff: (Portfolio / Token API)
alchemy-api - Transaction transfer history → handoff: (Transfers API)
alchemy-api - Live RPC reads → handoff: or
alchemy-cli(JSON-RPC)alchemy-api - Pre-execution simulation → handoff: (Simulation API)
alchemy-api - Account abstraction → handoff: (Wallets / Bundler / Gas Manager)
alchemy-api - Embedded / smart wallet onboarding → handoff: (Account Kit)
alchemy-api - Signed tx submission → user wallet (or Privy if configured for OpenSea write flows)
本技能覆盖范围():
scope_in- 市场数据:、
opensea listings best、opensea listings best-for-nft、opensea offers best-for-nft、opensea offers all、opensea collections stats、opensea collections trending、opensea collections topopensea collections traits - Seaport交易:购买()和出售(
opensea-fulfill-listing.sh)的履约数据;通过opensea-fulfill-offer.sh结合Seaport订单结构创建挂单/报价opensea-post.sh - 事件/监控:、
opensea events list、events by-collection、events by-nft——交易/转移/铸造/挂单/报价/属性报价/藏品报价events by-account - 发售活动+铸造:、
opensea drops list、opensea drops getopensea drops mint - 搜索:跨藏品/NFT/代币/账户搜索
opensea search - 账户工具:(ENS/用户名/地址解析)
opensea accounts resolve
本技能不覆盖范围():
scope_out- 市场场景外的通用NFT元数据读取(名称、图片、属性、所有权、合约元数据)→ 转接:(NFT API)。OpenSea的NFT数据带有市场属性且速率限制严格;Alchemy的NFT API覆盖范围更广,纯元数据读取成本更低。
alchemy-api - 纯跨链代币兑换(无NFT市场场景)→ 转接:(生态技能)。OpenSea的兑换聚合器可用,但
lifi覆盖更多跨链桥和链。lifi - 用于估值/展示的代币现货价格→转接:(Prices API)
alchemy-api - 通用代币元数据、搜索、列出→转接:(Token API)
alchemy-api - 钱包余额(代币+原生币)→转接:(Portfolio / Token API)
alchemy-api - 交易转移历史→转接:(Transfers API)
alchemy-api - 实时RPC读取→转接:或
alchemy-cli(JSON-RPC)alchemy-api - 执行前模拟→转接:(Simulation API)
alchemy-api - 账户抽象→转接:(Wallets / Bundler / Gas Manager)
alchemy-api - 嵌入式/智能钱包注册→转接:(Account Kit)
alchemy-api - 签名交易提交→用户钱包(或配置Privy用于OpenSea写入流程)
Setup
配置步骤
API key is required. Get one instantly via the auth endpoint (no signup) or register at the developer portal for higher limits:
bash
undefined必须使用API密钥。可通过认证端点即时获取(无需注册),或在开发者门户注册以获取更高限额:
bash
undefinedInstant key (no signup needed)
即时获取密钥(无需注册)
export OPENSEA_API_KEY=$(curl -s -X POST https://api.opensea.io/api/v2/auth/keys | jq -r '.api_key')
export OPENSEA_API_KEY=$(curl -s -X POST https://api.opensea.io/api/v2/auth/keys | jq -r '.api_key')
Or set an existing key
或设置已有密钥
export OPENSEA_API_KEY="..."
export OPENSEA_API_KEY="..."
Install the CLI globally (optional — `npx @opensea/cli` works without install):
```bash
npm install -g @opensea/cliFor write / fulfillment flows that sign with Privy:
bash
export PRIVY_APP_ID="..."
export PRIVY_APP_SECRET="..."
export PRIVY_WALLET_ID="..."Security: never exposeor Privy credentials in client-side code. Server-side only.OPENSEA_API_KEY
全局安装CLI(可选——无需安装即可使用`npx @opensea/cli`):
```bash
npm install -g @opensea/cli对于使用Privy签名的写入/履约流程:
bash
export PRIVY_APP_ID="..."
export PRIVY_APP_SECRET="..."
export PRIVY_WALLET_ID="..."安全提示: 切勿在客户端代码中暴露或Privy凭证,仅在服务端使用。OPENSEA_API_KEY
Endpoint reference → references/marketplace.md
端点参考 → references/marketplace.md
Marketplace queries (most-used)
常用市场查询
| Task | CLI |
|---|---|
| Best listings for a collection | |
| Best listing for a specific NFT | |
| Best offer for an NFT | |
| All listings on a collection | |
| All offers on a collection | |
| Trait offers | |
| Collection stats (floor, volume) | |
| Trending collections | |
| Top collections by sort | |
| Collection traits | |
| 任务 | CLI命令 |
|---|---|
| 藏品最优挂单 | |
| 特定NFT的最优挂单 | |
| NFT的最优报价 | |
| 藏品所有挂单 | |
| 藏品所有报价 | |
| 属性报价 | |
| 藏品统计数据(地板价、交易量) | |
| 趋势藏品 | |
| 排序后的顶级藏品 | |
| 藏品属性 | |
Seaport trade execution
Seaport交易执行
| Task | Script |
|---|---|
| Get fulfillment data to buy an NFT | |
| Get fulfillment data to sell (accept offer) | |
| Generic POST to OpenSea API | |
| 任务 | 脚本 |
|---|---|
| 获取购买NFT的履约数据 | |
| 获取出售(接受报价)的履约数据 | |
| 向OpenSea API发送通用POST请求 | |
Events / monitoring
事件/监控
| Task | CLI |
|---|---|
| Recent events (filterable by type) | |
| Events for a collection | |
| Events for a specific NFT | |
| Events for an account | |
Event types: , , , , , , .
saletransfermintlistingoffertrait_offercollection_offerFor real-time event streaming: (requires ).
opensea-stream-collection.sh <slug>websocat| 任务 | CLI命令 |
|---|---|
| 近期事件(可按类型过滤) | |
| 藏品相关事件 | |
| 特定NFT相关事件 | |
| 账户相关事件 | |
事件类型:、、、、、、。
saletransfermintlistingoffertrait_offercollection_offer实时事件流:(需安装)。
opensea-stream-collection.sh <slug>websocatDrops + minting
发售活动+铸造
| Task | CLI |
|---|---|
| List drops (featured / upcoming / recent) | |
| Drop details + stages | |
| Build mint tx | |
| 任务 | CLI命令 |
|---|---|
| 列出发售活动(精选/即将到来/近期) | |
| 发售活动详情+阶段 | |
| 构建铸造交易 | |
Search
搜索
| Task | CLI |
|---|---|
| Search collections | |
| Search NFTs | |
| Search tokens | |
| Search accounts | |
| Multi-type search | |
| 任务 | CLI命令 |
|---|---|
| 搜索藏品 | |
| 搜索NFT | |
| 搜索代币 | |
| 搜索账户 | |
| 多类型搜索 | |
Quick examples
快速示例
Get the floor + 24h volume for Bored Apes
获取无聊猿的地板价+24小时交易量
bash
opensea collections stats boredapeyachtclubbash
opensea collections stats boredapeyachtclubFind the cheapest listing for a collection
查找藏品的最低挂单
bash
opensea listings best boredapeyachtclub --limit 1bash
opensea listings best boredapeyachtclub --limit 1Buy an NFT (fulfill a listing)
购买NFT(履约挂单)
bash
undefinedbash
undefined1. Get the best listing for a specific NFT
1. 获取特定NFT的最优挂单
opensea listings best-for-nft boredapeyachtclub 1234
opensea listings best-for-nft boredapeyachtclub 1234
2. Get fulfillment data — order_hash from above response
2. 获取履约数据——order_hash来自上述响应
./scripts/opensea-fulfill-listing.sh ethereum 0xORDER_HASH 0xYOUR_WALLET
./scripts/opensea-fulfill-listing.sh ethereum 0xORDER_HASH 0xYOUR_WALLET
3. Sign + submit the returned tx data via your wallet
3. 通过钱包签名并提交返回的交易数据
undefinedundefinedStream sales for a collection in real time
实时流式获取藏品交易事件
bash
./scripts/opensea-stream-collection.sh boredapeyachtclubbash
./scripts/opensea-stream-collection.sh boredapeyachtclubFilters to sale events; pipe through jq to format
过滤交易事件;可通过jq格式化输出
undefinedundefinedSearch across types
跨类型搜索
bash
opensea search "cool cats" --types collection,nft --chains ethereum,basebash
opensea search "cool cats" --types collection,nft --chains ethereum,baseCommon gotchas
常见注意事项
- API key is mandatory — even the "instant" tier requires one. The bare REST API will 401 without .
X-API-KEY - OpenSea's NFT data overlaps with Alchemy's NFT API for metadata reads. Prefer Alchemy for general NFT metadata (name, image, traits, ownership across many wallets) — OpenSea is rate-limited harder and adds marketplace flavoring you may not want. Use OpenSea when the marketplace context (listings, offers, sales history, drops) is the actual need.
- Token swap aggregator exists in the OpenSea API (), but for pure swap flows without marketplace context,
opensea swaps quoteaggregates more bridges + DEXs and is the better default. Use OpenSea swaps when the user is already in an NFT-buying flow that involves a token swap.lifi - Privy is optional but required for end-to-end write flows. The skill returns fulfillment calldata; how it gets signed is up to the app (user wallet, Privy, or any other signer).
- Order hashes from /
listings best-for-nftare needed for fulfillment. Don't lose them between API calls.offers best-for-nft - Event streaming requires ; if not installed, fall back to polling
websocatwith the same filters.events by-collection - Slug vs. address: collections are addressed by slug (e.g., ), NFTs by
boredapeyachtclub. Don't mix.(chain, contract, tokenId)
- 必须使用API密钥——即使是"即时" tier也需要。不带的REST API请求会返回401错误。
X-API-KEY - OpenSea的NFT数据与Alchemy的NFT API存在重叠。通用NFT元数据读取(名称、图片、属性、多钱包所有权)优先使用Alchemy——OpenSea的速率限制更严格,且会添加不必要的市场属性。仅当确实需要市场语境(挂单、报价、交易历史、发售活动)时使用OpenSea。
- OpenSea API包含代币兑换聚合器(),但无市场场景的纯兑换流程优先使用
opensea swaps quote——它聚合了更多跨链桥和去中心化交易所,是更优选择。仅当用户处于涉及代币兑换的NFT购买流程时使用OpenSea兑换。lifi - Privy是可选配置,但端到端写入流程需要它。本技能返回履约调用数据,签名方式由应用决定(用户钱包、Privy或其他签名器)。
- 履约需要/
listings best-for-nft返回的订单哈希。API调用间请勿丢失该哈希。offers best-for-nft - 事件流需要;若未安装,可退化为使用相同过滤器轮询
websocat。events by-collection - Slug与地址的区别:藏品通过slug(如)定位,NFT通过
boredapeyachtclub定位,请勿混淆。(chain, contract, tokenId)
Routing back to Alchemy
转接至Alchemy
If during a session the user's need shifts to surfaces this skill doesn't cover:
- NFT metadata reads (name, image, traits, ownership) — (NFT API) is the right path. OpenSea's NFT API is marketplace-flavored and rate-limited; Alchemy's is broader and faster.
alchemy-api - Token prices, balances, transfer history, general token metadata —
alchemy-api - Live RPC, gas, simulation, AA, Account Kit — (live) or
alchemy-cli(app code) oralchemy-api(no API key)agentic-gateway - Pure cross-chain token swaps — (ecosystem skill); covers 27 bridges + 31 DEXs across 60+ chains
lifi
Maintenance: OpenSea maintainsand the underlying API; this skill itself is maintained jointly by Alchemy and OpenSea. File issues against@opensea/cliwithalchemyplatform/skillsin the title.[ecosystem/opensea]
若会话中用户需求超出本技能覆盖范围:
- NFT元数据读取(名称、图片、属性、所有权)——(NFT API)是正确选择。OpenSea的NFT API带有市场属性且速率限制严格;Alchemy的覆盖范围更广、速度更快。
alchemy-api - 代币价格、余额、转移历史、通用代币元数据——
alchemy-api - 实时RPC、Gas、模拟、账户抽象、Account Kit——(实时)或
alchemy-cli(应用代码)或alchemy-api(无需API密钥)agentic-gateway - 纯跨链代币兑换——(生态技能);覆盖60+链上的27个跨链桥+31个去中心化交易所
lifi
维护说明: OpenSea维护及底层API;本技能由Alchemy和OpenSea联合维护。请在@opensea/cli提交问题,标题中包含alchemyplatform/skills。[ecosystem/opensea]