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 | if [ "$#" -lt 1 ]; then |
| #5 | echo "Usage: opensea-account-collections.sh <address> [limit] [after] [chains]" >&2 |
| #6 | echo "Get collections owned by an account" >&2 |
| #7 | exit 1 |
| #8 | fi |
| #9 |
| #10 | address="$1" |
| #11 | limit="${2:-20}" |
| #12 | after="${3:-}" |
| #13 | chains="${4:-}" |
| #14 |
| #15 | query="limit=$limit" |
| #16 | [ -n "$after" ] && query="$query&after=$after" |
| #17 | [ -n "$chains" ] && query="$query&chains=$chains" |
| #18 |
| #19 | "$(dirname "$0")/../opensea-get.sh" "/api/v2/account/${address}/collections" "$query" |
| #20 |