repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
Mirrored from https://github.com/ProjectOpenSea/opensea-skill
stars
latest
clone command
git clone gitlawb://did:key:z6MkqRzA...RfoM/ProjectOpenSea-...git clone gitlawb://did:key:z6MkqRzA.../ProjectOpenSea-...fef93001Release v2.14.012h ago| #1 |
| #!/usr/bin/env bash |
| #2 | set -euo pipefail |
| #3 |
| #4 | # Usage: opensea-collections-trending.sh [timeframe] [limit] [chains] [category] [cursor] |
| #5 | # Example: opensea-collections-trending.sh one_day 20 ethereum,base pfps |
| #6 |
| #7 | timeframe="${1:-one_day}" |
| #8 | limit="${2-}" |
| #9 | chains="${3-}" |
| #10 | category="${4-}" |
| #11 | cursor="${5-}" |
| #12 |
| #13 | query="timeframe=$timeframe" |
| #14 | if [ -n "$limit" ]; then |
| #15 | query="$query&limit=$limit" |
| #16 | fi |
| #17 | if [ -n "$chains" ]; then |
| #18 | query="$query&chains=$chains" |
| #19 | fi |
| #20 | if [ -n "$category" ]; then |
| #21 | query="$query&category=$category" |
| #22 | fi |
| #23 | if [ -n "$cursor" ]; then |
| #24 | query="$query&cursor=$cursor" |
| #25 | fi |
| #26 |
| #27 | "$(dirname "$0")/../opensea-get.sh" "/api/v2/collections/trending" "$query" |
| #28 |