{"id":23642194,"url":"https://github.com/soundworklabs/spl-token-minter","last_synced_at":"2025-10-12T12:48:47.803Z","repository":{"id":244209851,"uuid":"796326464","full_name":"SoundWorkLabs/spl-token-minter","owner":"SoundWorkLabs","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-13T09:51:26.000Z","size":54,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-19T14:04:40.848Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SoundWorkLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-05T16:05:57.000Z","updated_at":"2024-07-28T20:19:06.000Z","dependencies_parsed_at":"2024-06-13T12:44:23.049Z","dependency_job_id":"bbe52bdd-40e6-4f2a-ac36-61862bd7e4a8","html_url":"https://github.com/SoundWorkLabs/spl-token-minter","commit_stats":null,"previous_names":["soundworklabs/spl-token-minter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SoundWorkLabs/spl-token-minter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoundWorkLabs%2Fspl-token-minter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoundWorkLabs%2Fspl-token-minter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoundWorkLabs%2Fspl-token-minter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoundWorkLabs%2Fspl-token-minter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SoundWorkLabs","download_url":"https://codeload.github.com/SoundWorkLabs/spl-token-minter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoundWorkLabs%2Fspl-token-minter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259913616,"owners_count":22931243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-28T10:48:21.947Z","updated_at":"2025-10-12T12:48:42.757Z","avatar_url":"https://github.com/SoundWorkLabs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solana Token Minter\n\nThis Solana program allows you to create, mint and transfer tokens.\n\n## Building\n\nPlease make sure that the Solana toolchain you are using is similar to the one described in the [Anchor.toml](./Anchor.toml) config file.\n\n```bash\nsolana-cli 1.18.8 (src:e2d34d37; feat:3469865029, client:SolanaLabs)\nanchor-cli 0.29.0\n```\n\n## Testing\n\n1. Update the connection string in [config.ts](./tests/config.ts) to use the public RPC API.\n\n```ts\nexport const connection = new anchor.web3.Connection(clusterApiUrl(\"devnet\"));\n```\n\nElse create a `.env` file with and add a `HELIUS_API_KEY` api key.\n\n2. If you are creating/initializing a new token mint, you will need to update the `ADMIN_ADDRESS` with your own address in [constants.rs](./programs/token-test/src/constants.rs)\n\n3. After initializing the token mint address, run the mint test with the amount of tokens you want to mint to the ADMIN_ADDRESS.\n\n```ts\nit(\"Mints Tokens!\", async () =\u003e {\n\tconst args = {\n\t\tamount: new BN(1), // mint once DSF token\n\t};\n\tconst recipientTokenAccount = getAssociatedTokenAddressSync(\n\t\tnftMint,\n\t\tpayer.publicKey\n\t);\n\tconst txHash = await program.methods\n\t\t.mint(args)\n\t\t.accounts({\n\t\t\tpayer: anchor.AnchorProvider.env().wallet.publicKey,\n\t\t\tmint: nftMint,\n\t\t\trecipientTokenAccount,\n\t\t\ttokenProgram: TOKEN_PROGRAM_ID,\n\t\t\tsystemProgram: SystemProgram.programId,\n\t\t})\n\t\t.rpc({ skipPreflight: true });\n\tconsole.log(\n\t\t`mint tx Hash: https://explorer.solana.com/tx/${txHash}?cluster=devnet`\n\t);\n});\n```\n\nYou can use the [`revoke`](./programs/token-test/src/instructions/revoke.rs), to remove the mint authority after which not tokens can be minted again.\n\n```ts\nit(\"Revokes Mint Authority!\", async () =\u003e {\n\tconst txHash = await program.methods\n\t\t.revokeMintAuth()\n\t\t.accounts({\n\t\t\tpayer: anchor.AnchorProvider.env().wallet.publicKey,\n\t\t\tmint: nftMint,\n\t\t\ttokenProgram: TOKEN_PROGRAM_ID,\n\t\t\tsystemProgram: SystemProgram.programId,\n\t\t})\n\t\t.rpc({ skipPreflight: true });\n\tconsole.log(\n\t\t`revoke mint authority tx Hash: https://explorer.solana.com/tx/${txHash}?cluster=devnet`\n\t);\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoundworklabs%2Fspl-token-minter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoundworklabs%2Fspl-token-minter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoundworklabs%2Fspl-token-minter/lists"}