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-token-activity.sh <chain> <address> [limit] [cursor]" >&2 |
| #6 | echo "Get recent swap activity for a token (max limit 50)" >&2 |
| #7 | exit 1 |
| #8 | fi |
| #9 |
| #10 | chain="$1" |
| #11 | address="$2" |
| #12 | limit="${3:-20}" |
| #13 | cursor="${4:-}" |
| #14 |
| #15 | query="limit=$limit" |
| #16 | if [ -n "$cursor" ]; then |
| #17 | query="$query&cursor=$cursor" |
| #18 | fi |
| #19 |
| #20 | "$(dirname "$0")/../opensea-get.sh" "/api/v2/chain/${chain}/token/${address}/activity" "$query" |
| #21 |