An open API service indexing awesome lists of open source software.

https://github.com/solana-developers/token-metadata-extension


https://github.com/solana-developers/token-metadata-extension

Last synced: 9 months ago
JSON representation

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!