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| #!/usr/bin/env bash |
| #2 | set -euo pipefail |
| #3 |
| #4 | # Usage: opensea-drops.sh [type] [limit] [chains] [cursor] |
| #5 | # Example: opensea-drops.sh featured 20 ethereum,base |
| #6 |
| #7 | type="${1:-featured}" |
| #8 | limit="${2-}" |
| #9 | chains="${3-}" |
| #10 | cursor="${4-}" |
| #11 |
| #12 | query="type=$type" |
| #13 | if [ -n "$limit" ]; then |
| #14 | query="$query&limit=$limit" |
| #15 | fi |
| #16 | if [ -n "$chains" ]; then |
| #17 | query="$query&chains=$chains" |
| #18 | fi |
| #19 | if [ -n "$cursor" ]; then |
| #20 | query="$query&cursor=$cursor" |
| #21 | fi |
| #22 |
| #23 | "$(dirname "$0")/../opensea-get.sh" "/api/v2/drops" "$query" |
| #24 |