Tool for snapshotting tokens + token metadata accounts
- On-chain Metadata Snapshot
- On-chain Metadata Updates
node solsnapper.js snapshot --rpc <RPC HOST HERE> mints --creator <CREATOR ADDRESS>
node solsnapper.js snapshot mints --creator <Creator Address>
Returns a list of mint addresses by first verified creator. Note: For larger collections this can take up to 10 minutes. If it fails, run it again.
node solsnapper.js snapshot mints --owner <Owner Wallet>
Returns a list of mint addresses by owner wallet.
node solsnapper.js --rpc <RPC> snapshot images -l <mint list file>
Downloads a snapshot of image files from a list of NFTS.
node solsnapper.js --rpc <RPC> snapshot metadata -l <mint list file>
Downloads off chain metadata json structures from a list of NFTs.
To process any of the below commands, you must first ensure that you have update authority over the NFT(s) that you are trying to udpate. To setup your key, follow the steps below:
- Rename
.env.example
to.env
. - Add your private key to the .env file, e.g.:
PRIV_KEY=kNykCXNxgePDjFbDWjPNvXQRa8U12Ywc19dFVaQ7tebUj3m7H4sF4KKdJwM7yxxb3rqxchdjezX9Szh8bLcQAjb
- Run
node solsnapper.js convert
NOTE: This command converts a private key from B58 to Uint8Array which is whatsolana
commandline uses by default. It will spit out akey.json
file.
node solsnapper.js update --rpc https://rpc.host.goes.here/ --name <Nft Name> --mint <Mint Address>
This will update a list of mint addresses onto a new metaplex collection.
--collection
should be set as the correct collection NFT address
node solsnapper.js --rpc <RPC> update --list mintsByCreator.json --collection 4chqK6Lau6EUytPEoVvUS2qFWvCRM4tqftv79FFn7hEj
This will update a list of mint addresses onto a new metaplex collection.
--uri
should be set as the new uri
node solsnapper.js --rpc <RPC> update --list mintsByCreator.json --uri https://arweave.net/NEWARWEAVELINKHERE
This will update a list of mint addresses to a new update authority
--authority
should be set as the new update authority
`node solsnapper.js --rpc update --list mintsByCreator.json --authority