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 3 ]; then |
| #5 | echo "Usage: opensea-nft-owners.sh <chain> <contract> <token_id> [limit] [next]" >&2 |
| #6 | echo "Get owners of an NFT (paginated for ERC-1155s)" >&2 |
| #7 | exit 1 |
| #8 | fi |
| #9 |
| #10 | chain="$1" |
| #11 | contract="$2" |
| #12 | identifier="$3" |
| #13 | limit="${4:-20}" |
| #14 | next="${5:-}" |
| #15 |
| #16 | query="limit=$limit" |
| #17 | if [ -n "$next" ]; then |
| #18 | query="$query&next=$next" |
| #19 | fi |
| #20 |
| #21 | "$(dirname "$0")/../opensea-get.sh" "/api/v2/chain/${chain}/contract/${contract}/nfts/${identifier}/owners" "$query" |
| #22 |