Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/metaplex-foundation/get-collection
Rust and TypeScript example code for finding all members from a collection id.
https://github.com/metaplex-foundation/get-collection
Last synced: about 2 months ago
JSON representation
Rust and TypeScript example code for finding all members from a collection id.
- Host: GitHub
- URL: https://github.com/metaplex-foundation/get-collection
- Owner: metaplex-foundation
- Created: 2022-02-24T00:48:14.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-18T23:07:39.000Z (12 months ago)
- Last Synced: 2024-07-31T08:17:54.197Z (5 months ago)
- Language: Rust
- Size: 69.3 KB
- Stars: 27
- Watchers: 3
- Forks: 15
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - metaplex-foundation/get-collection - Rust and TypeScript example code for finding all members from a collection id. (Rust)
README
## get-collection-rs
### Use the Crawler
```
cargo build --release
``````
./target/release/get-collection
```Example:
```
./target/release/get-collection https://api.metaplex.solana.com/ 66gy1CNSpMzTtf6P8CFGY1mo5K3n7wn2bE249p31tehv
```
**Note: This requires an RPC node with archival access so it can perform transaction crawling, and it will exceed rate-limits of public nodes as well.Outputs the list of mints to a file named `_mints.json`.
## get-collection-ts
```
yarn install
``````
ts-node index.ts
```Example:
```
ts-node index.ts 66gy1CNSpMzTtf6P8CFGY1mo5K3n7wn2bE249p31tehv
```or with custom rpc node
```
ts-node index.ts 66gy1CNSpMzTtf6P8CFGY1mo5K3n7wn2bE249p31tehv https://api.metaplex.solana.com/
```Outputs the list of mints to a file named `_mints.json`.