Skip to content

Rust and TypeScript example code for finding all members from a collection id.

Notifications You must be signed in to change notification settings

metaplex-foundation/get-collection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

get-collection-rs

Use the Crawler

cargo build --release
./target/release/get-collection <rpc_node> <collection_id>

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 <collection_id>_mints.json.

get-collection-ts

yarn install
ts-node index.ts <collection_id> <rpc_node>

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 <collection_id>_mints.json.

About

Rust and TypeScript example code for finding all members from a collection id.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages