A utility script for creating and managing SPL token metadata using the Metaplex SDK on Solana.
- Clone the Repository:
git clone https://github.com/wormhole-foundation/demo-metaplex-metadata
cd demo-metaplex-metadata
- Install Dependencies:
npm install
- Setup environment variable:
SOL_PRIVATE_KEY="INSERT_PRIVATE_KEY"
You can run the script to create or update metadata for an SPL token using the Metaplex SDK.
Creates the metadata for your SPL token:
npm run create-metadata
Updates the metadata:
npm run update-metadata
- Never commit your private key or sensitive information
- Update the following TODOs in the token-metadata script:
- Token mint account
- metadata details