| name | element-nft-tracker |
| description | Element Market API integration. This skill strictly requires the 'ELEMENT_API_KEY' environment variable to function. |
| envs | ["ELEMENT_API_KEY"] |
| credentials | ["ELEMENT_API_KEY"] |
| primary_credential | ELEMENT_API_KEY |
| requires | ["curl","jq"] |
| metadata | {"openclaw":{"emoji":"🌊","homepage":"https://github.com/beelzebub520/element-nft-tracker","primary_credential":"ELEMENT_API_KEY","requires":{"bins":"[Truncated]","envs":"[Truncated]","credentials":"[Truncated]"}}} |
Element NFT Market 🌊
Skill for querying NFT collection statistics, portfolios, and monitoring active trading events on the Element Market.
🛡️ Security & Privacy
- Consent Protocol: The agent MUST explicitly ask the user for permission and receive a positive confirmation before querying any wallet address.
- Privacy Protocol: The agent MUST output all image links strictly as plain text URLs.
- API Scope: This skill performs read-only queries.
🚀 Setup
Please configure the ELEMENT_API_KEY environment variable within your OpenClaw instance.
🧠 Agent Knowledge Base: Token Mapping
🚨 SYSTEM RULE for Data Interpretation: When the API response contains a paymentToken address, you MUST use the following mapping table to determine the correct currency symbol and decimals for formatting the price. If a token is not listed, default to the native chain currency. Pay strict attention to the Decimals column for price calculation.
| Chain | Payment Token Address (paymentToken) | Currency Symbol | Decimals |
|---|
| eth | 0x0000000000000000000000000000000000000000 | ETH | 18 |
| eth | 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 | WETH | 18 |
| bsc | 0x0000000000000000000000000000000000000000 | BNB | 18 |
| bsc | 0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c | WBNB | 18 |
| bsc | 0x55d398326f99059ff775485246999027b3197955 | USDT | 18 |
| polygon | 0x0000000000000000000000000000000000000000 | MATIC | 18 |
| polygon | 0x7ceb23fd6bc0add59e62ac25578270cff1b9f619 | ETH | 18 |
| base | 0x0000000000000000000000000000000000000000 | ETH | 18 |
| base | 0x4200000000000000000000000000000000000006 | WETH | 18 |
| base | 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 | USDC | 6 |
📊 Queries & Monitors
Get Collection Stats
Use this to check the detailed volume, floor price, 24h average price, and the latest trade price for a specific NFT collection by its slug.
SLUG="boredapeyachtclub"
CHAIN="eth"
HOST="api.element.market"
curl -s -G "https://${HOST}/openapi/v1/collection/stats" \
--data-urlencode "chain=${CHAIN}" \
--data-urlencode "collection_slug=${SLUG}" \
--header "X-Api-Key: ${ELEMENT_API_KEY}" \
--header "accept: application/json" | jq '{volume24h: .data.stats1D.volume, saleCount24h: .data.stats1D.saleCount, floorPrice: .data.collectionFloorPrice.floorPriceSource, avgPrice24h: .data.stats1D.avgPrice, lastTradePrice: .data.lastTradePrice}'
Get Ranking List
Use this to fetch the top trending NFT collections on a specific chain.
SORTTYPE="TOP"
CHAIN="eth"
LEVEL="L1D"
LIMIT="10"
HOST="api.element.market"
curl -s -G "https://${HOST}/openapi/v1/collection/ranking" \
--data-urlencode "chain=${CHAIN}" \
--data-urlencode "sort_type=${SORTTYPE}" \
--data-urlencode "level=${LEVEL}" \
--data-urlencode "limit=${LIMIT}" \
--header "X-Api-Key: ${ELEMENT_API_KEY}" \
--header "accept: application/json" | jq '[.data.rankingList[].collectionRank | {name: .collection.name, slug: .collection.slug, floorPrice: .floorPrice, volume: .volume}]'
Get Wallet NFT Portfolio (Asset List)
Use this to get the list of NFTs owned by a specific wallet address.
- CHAIN can be "eth", "bsc", etc.
- WALLET_ADDRESS is the 0x address.
- 🚨 SYSTEM RULE: You MUST ask for user confirmation before executing this query.
- LIMIT is the number of assets to return.
CHAIN="eth"
WALLET_ADDRESS=""
LIMIT="10"
HOST="api.element.market"
curl -s -G "https://${HOST}/openapi/v1/account/assetList" \
--data-urlencode "chain=${CHAIN}" \
--data-urlencode "wallet_address=${WALLET_ADDRESS}" \
--data-urlencode "limit=${LIMIT}" \
--header "X-Api-Key: ${ELEMENT_API_KEY}" \
--header "accept: application/json" | jq '[.data.assetList[].asset | {name: .name, collection: .collection.name, tokenId: .tokenId, type: .tokenType, quantity: .ownedQuantity, image: .imagePreviewUrl}]'
Get Received Offers (Offers on your NFTs)
Use this to check the highest offers (bids) received on the NFTs owned by a specific wallet.
- CHAIN can be "eth", "bsc", etc.
- WALLET_ADDRESS is the 0x address.
- 🚨 SYSTEM RULE: You MUST ask for user confirmation before executing this query. You MUST print the image parameter exactly as a plain text URL.
CHAIN="bsc"
WALLET_ADDRESS=""
LIMIT="10"
HOST="api.element.market"
curl -s -G "https://${HOST}/openapi/v1/account/offerReceived" \
--data-urlencode "chain=${CHAIN}" \
--data-urlencode "wallet_address=${WALLET_ADDRESS}" \
--data-urlencode "limit=${LIMIT}" \
--header "X-Api-Key: ${ELEMENT_API_KEY}" \
--header "accept: application/json" | jq '[.data.assetList[] | select(.orderData.bestBid != null) | {name: .asset.name, collection: .asset.collection.name, slug: .asset.collection.slug, image: .asset.imagePreviewUrl, offerPrice: .orderData.bestBid.price, offerUSD: .orderData.bestBid.priceUSD, offerer: .orderData.bestBid.maker}]'
Get Collection Slug by Contract Address (Address Resolver)
Use this tool to find a collection's slug by its contract address. Automatically call Get Collection Stats using the resolved slug.
CHAIN="bsc"
CONTRACT_ADDRESS="0xed5af388653567af2f388e6224dc7c4b3241c544"
HOST="api.element.market"
curl -s -G "https://${HOST}/openapi/v1/contract" \
--data-urlencode "chain=${CHAIN}" \
--data-urlencode "contract_address=${CONTRACT_ADDRESS}" \
--header "X-Api-Key: ${ELEMENT_API_KEY}" \
--header "accept: application/json" | jq '{name: .data.collection.name, slug: .data.collection.slug, image: .data.collection.imageUrl}'
Check Recent Wallet Sales Activity (All-in-One Monitor)
🔴 PRIMARY TRIGGER: Use whenever user asks "Did I sell any NFTs recently?". Requires explicit user consent.
- CHAIN can be "eth", "bsc", etc.
- WALLET_ADDRESS is the 0x address.
- LIMIT is the number of recent activities.
- 🚨 SYSTEM RULES:
- Consent: You MUST ask for user confirmation before executing this query.
- Action: If
from is the user, output "Sell". If to is the user, output "Buy".
- Formatting: Print the image URL as plain text only.
🚨 NFT Sale Monitor Alert!
[🖼️ View Collection Image]
Collection: [collection]
Token ID: [tokenId]
💰 Transaction Details:
- Action: [Buy / Sell]
- Price: [salePrice] [Currency]
- Counterparty:
[from/to]
- Time: [time]
- Tx Receipt: https://[Chain_Scan_Domain]/tx/[txHash]
📊 Latest Collection Stats:
- Current Floor Price: [floorPrice] [Currency]
- 24H Average Price: [avgPrice24h] [Currency]
- Last Trade Price: [lastTradePrice] [Currency]
💡 Agent Insight: (1-sentence analysis comparing the salePrice to the floorPrice/lastTradePrice.)
CHAIN="bsc"
WALLET_ADDRESS=""
LIMIT="5"
HOST="api.element.market"
ACTIVITIES=$(curl -s -G "https://${HOST}/openapi/v1/account/activity" \
--data-urlencode "chain=${CHAIN}" \
--data-urlencode "wallet_address=${WALLET_ADDRESS}" \
--data-urlencode "event_names=Sale" \
--data-urlencode "limit=${LIMIT}" \
--header "X-Api-Key: ${ELEMENT_API_KEY}" \
--header "accept: application/json" | jq -c '.data.activityList[].accountActivity | select(. != null)')
JSON_RESULT="["
while IFS= read -r activity; do
if [ -z "$activity" ]; then continue; fi
CONTRACT=$(echo "$activity" | jq -r '.contractAddress')
TOKEN_ID=$(echo "$activity" | jq -r '.tokenId')
PRICE_ETH=$(echo "$activity" | jq -r 'if .price != null then ((.price | tonumber) / 1000000000000000000) else 0 end')
FROM_ADDR=$(echo "$activity" | jq -r '.fromAddress')
TO_ADDR=$(echo "$activity" | jq -r '.toAddress')
TIME=$(echo | jq -r )
TX_HASH=$( | jq -r )
CONTRACT_RES=$(curl -s -G \
--data-urlencode \
--data-urlencode \
--header \
--header )
COLLECTION_NAME=$( | jq -r )
SLUG=$( | jq -r )
IMAGE_URL=$( | jq -r )
FLOOR_PRICE=0
AVG_PRICE=0
LAST_PRICE=0
[ -n ] && [ != ];
STATS_RES=$(curl -s -G \
--data-urlencode \
--data-urlencode \
--header \
--header )
FLOOR=$( | jq -r )
AVG=$( | jq -r )
LAST=$( | jq -r )
[ -n ] && [ != ] && FLOOR_PRICE=
[ -n ] && [ != ] && AVG_PRICE=
[ -n ] && [ != ] && LAST_PRICE=
ITEM=$(jq -n \
--arg name \
--arg image \
--arg tokenId \
--arg price \
--arg from \
--arg to \
--arg \
--arg txHash \
--arg floor \
--arg avg \
--arg last \
)
JSON_RESULT=
<<<
[ = ];
Check New Received Offers (Offer Monitor)
🔴 PRIMARY TRIGGER: Use whenever user asks "Did I get any new offers?". Requires explicit user consent.
- Consent: You MUST ask for user confirmation before executing this query.
- Formatting: Print the image URL as plain text only.
🔔 New NFT Offer Alert!
[🖼️ View NFT Image]
Item: [name]
Collection: [collection]
💰 Offer Details:
- Offer Price: [offerPrice] [Currency]
- Offerer:
[maker]
- Offer Time: [listingTime]
📊 Collection Stats (24H):
- Current Floor Price: [floorPrice] [Currency]
- 24H Average Price: [avgPrice24h] [Currency]
- Last Trade Price: [lastTradePrice] [Currency]
- 24H Sales Count: [saleCount24h]
💡 Agent Insight: (1-sentence analysis comparing offerPrice to floorPrice/lastTradePrice.)
CHAIN="bsc"
WALLET_ADDRESS=""
LIMIT="10"
HOST="api.element.market"
OFFERS=$(curl -s -G "https://${HOST}/openapi/v1/account/offerReceived" \
--data-urlencode "chain=${CHAIN}" \
--data-urlencode "wallet_address=${WALLET_ADDRESS}" \
--data-urlencode "limit=${LIMIT}" \
--header "X-Api-Key: ${ELEMENT_API_KEY}" \
--header "accept: application/json" | jq -c '.data.assetList[] | select(.orderData.bestBid != null)')
JSON_RESULT="["
while IFS= read -r offer; do
if [ -z "$offer" ]; then continue; fi
NAME=$(echo "$offer" | jq -r '.asset.name // "Unknown"')
COLLECTION_NAME=$(echo "$offer" | jq -r '.asset.collection.name // "Unknown"')
SLUG=$(echo "$offer" | jq -r '.asset.collection.slug // empty')
IMAGE_URL=$(echo "$offer" | jq -r '.asset.imagePreviewUrl // ""')
PRICE=$(echo "$offer" | jq -r '.orderData.bestBid.price // 0')
MAKER=$(echo "$offer" | jq -r )
LISTING_TIME=$( | jq -r )
FLOOR_PRICE=0
AVG_PRICE=0
SALE_COUNT=0
LAST_PRICE=0
[ -n ] && [ != ];
STATS_RES=$(curl -s -G \
--data-urlencode \
--data-urlencode \
--header \
--header )
FLOOR=$( | jq -r )
AVG=$( | jq -r )
SALES=$( | jq -r )
LAST=$( | jq -r )
[ -n ] && [ != ] && FLOOR_PRICE=
[ -n ] && [ != ] && AVG_PRICE=
[ -n ] && [ != ] && SALE_COUNT=
[ -n ] && [ != ] && LAST_PRICE=
ITEM=$(jq -n \
--arg name \
--arg coll \
--arg img \
--arg price \
--arg maker \
--arg \
--arg floor \
--arg avg \
--arg sales \
--arg last \
)
JSON_RESULT=
<<<
[ = ];
🔗 Links
- API Documentation:
https://element.readme.io/reference/api-overview
- Create API Key:
https://element.market/apikeys
- Mainnet:
https://element.market