https://github.com/solana-developers/token-metadata-extension
https://github.com/solana-developers/token-metadata-extension
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/solana-developers/token-metadata-extension
- Owner: solana-developers
- Created: 2024-02-22T18:46:04.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-22T18:47:04.000Z (over 2 years ago)
- Last Synced: 2024-11-28T06:10:01.173Z (over 1 year ago)
- Language: TypeScript
- Size: 10.7 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Metadata token extension
This demos how to create a Solana token using the Token Extension program and the Token Metadata extensions.
## Learn more about Token Extensions
- [Solana Developer guides for Token Extensions](https://solana.com/developers/guides?tags=token+extensions)
- [How to use the Metadata pointer and Token metadata extension](https://solana.com/developers/guides/token-extensions/metadata-pointer)
## How to run this code
> Note:
> This script is currently configured to load a local keypair file from
> your local file system at the `~/.config/solana/id.json` location
> (which is the standard path if you have the Solana CLI installed).
> This script is also configured to use Solana devnet, therefore your
> local keypair will need devnet SOL already.
1. install the package dependencies with your favorite NodeJS package manager
```shell
yarn install
```
2. run the `./mint.ts` script using `esrun`
```shell
npx esrun ./mint.ts
```
Enjoy!