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 2 ]; then |
| #5 | echo "Usage: opensea-account-nfts.sh <chain> <wallet_address> [limit] [next]" >&2 |
| #6 | exit 1 |
| #7 | fi |
| #8 |
| #9 | chain="$1" |
| #10 | address="$2" |
| #11 | limit="${3-}" |
| #12 | next="${4-}" |
| #13 |
| #14 | query="" |
| #15 | if [ -n "$limit" ]; then |
| #16 | query="limit=$limit" |
| #17 | fi |
| #18 | if [ -n "$next" ]; then |
| #19 | if [ -n "$query" ]; then |
| #20 | query="$query&next=$next" |
| #21 | else |
| #22 | query="next=$next" |
| #23 | fi |
| #24 | fi |
| #25 |
| #26 | "$(dirname "$0")/../opensea-get.sh" "/api/v2/chain/${chain}/account/${address}/nfts" "$query" |
| #27 |