{"id":28136687,"url":"https://github.com/mintme-dev/mintme-sdk","last_synced_at":"2025-05-14T16:19:59.773Z","repository":{"id":288200691,"uuid":"967177772","full_name":"mintme-dev/mintme-sdk","owner":"mintme-dev","description":"The MintMe SDK is a JavaScript library designed to simplify token creation on the Solana blockchain. It provides an easy-to-use API for developers looking to interact with the MintMe Smart Contract, enabling seamless token creation, metadata integration, and advanced features.","archived":false,"fork":false,"pushed_at":"2025-05-12T12:47:27.000Z","size":86,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-14T16:19:56.923Z","etag":null,"topics":["blockchain","memecoins","minting-dapp","open-source","smart-contracts","solana","spl-token","spl-token-2022"],"latest_commit_sha":null,"homepage":"https://mintme.dev","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mintme-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2025-04-16T03:50:15.000Z","updated_at":"2025-05-12T12:47:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"85dc1e72-39aa-4dcc-a6fa-016738037414","html_url":"https://github.com/mintme-dev/mintme-sdk","commit_stats":null,"previous_names":["mintme-dev/mintme-sdk"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mintme-dev%2Fmintme-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mintme-dev%2Fmintme-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mintme-dev%2Fmintme-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mintme-dev%2Fmintme-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mintme-dev","download_url":"https://codeload.github.com/mintme-dev/mintme-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254179897,"owners_count":22027884,"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":["blockchain","memecoins","minting-dapp","open-source","smart-contracts","solana","spl-token","spl-token-2022"],"created_at":"2025-05-14T16:19:54.443Z","updated_at":"2025-05-14T16:19:59.757Z","avatar_url":"https://github.com/mintme-dev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MintMe SDK - Simplify Solana Token Creation 🚀\n\nThe MintMe SDK is a JavaScript library designed to simplify token creation on the Solana blockchain. It provides an easy-to-use API for developers looking to interact with the MintMe Smart Contract, enabling seamless token creation, metadata integration, and advanced features.\n\n---\n\n## Features 🌟\n\n1. **Token Creation Made Easy**: Create SPL tokens with customizable parameters like name, symbol, decimals, and supply.\n2. **Metadata Integration**: Automatically attach metadata to tokens using the Metaplex standard.\n3. **Cross-Platform Support**: Works in both Node.js and browser environments.\n4. **Secure Commission Handling**: Built-in mechanisms to ensure transparency and security in token creation.\n\n---\n\n## Installation 📦\n\nInstall the MintMe SDK via npm:\n\n```bash\nnpm install mintme-sdk\n```\n\n---\n\n## How to Use MintMe SDK 🛠️\n\n### **1. Create a Token Using `create-token-simple.js`**\n\nThis script provides a straightforward way to create tokens with minimal configuration. It uses the `createTokenSimple()` function from the SDK.\n\nHere’s how to run the script:\n\n```bash\nnode tests/create-token-simple.js\n```\n\n**Example Code:**\n\npartnerWallet = Your wallet.\npartnerAmount = Your commission for the transaction.\n\n```javascript\nconst { createTokenSimple } = require(\"mintme-sdk\");\n\n(async () =\u003e {\n  try {\n    const config = {\n      tokenName: \"MTM\",\n      tokenSymbol: \"MTM\",\n      uniqueKey: Date.now().toString(),\n      decimals: 9,\n      initialSupply: 1000000000000000,\n      uri: \"https://ipfs.mintme.dev/metadata.json\",\n      revokeMint: true,\n      revokeFreeze: true,\n      partnerWallet: \"_YOUR_WALLET_HERE_\",\n      partnerAmount: 0.1,\n      walletPath: \"./wallet.json\",\n      connection: \"https://api.devnet.solana.com\",\n      cluster: \"devnet\",\n    };\n\n    console.log(\"=== MINTING TOKEN ===\");\n    const result = await createTokenSimple(config);\n\n    if (result.success) {\n      console.log(\"=== TOKEN CREATED ===\");\n      console.log(\n        `TX: https://explorer.solana.com/tx/${result.txSignature}?cluster=${config.cluster}`\n      );\n    } else {\n      console.error(\"Error creating the token:\", result.error);\n    }\n  } catch (error) {\n    console.error(\"Fatal error:\", error);\n  }\n})();\n```\n\n### Run this example code in Codesandbox.io 💡\n\nYou can run this code directly in Codesandbox.io in your own machine witouth cost.\n\n- **Codesandbox.io Template Mintme Node Example**: [[codesandbox.io/p/devbox/template...](https://codesandbox.io/p/devbox/template-mintme-easy-node-example-hgpt49)](https://codesandbox.io/p/devbox/template-mintme-easy-node-example-hgpt49)\n\n---\n\n### **2. Token Creation Directly from the Terminal Using `create-token-terminal.js`**\n\nThis script allows you to create tokens directly from the terminal by passing specific parameters. It is ideal for developers who need more control over token creation.\n\n**Usage:**\n\n```bash\nnode tests/create-token-terminal.js --name \"MINTME\" --symbol \"MTKN\" --unique-key \"VERSION_1\"\n```\n\n**Example Command Line Options:**\n\n- `--name` (required): Token name.\n- `--symbol` (required): Token symbol.\n- `--unique-key` (required): Unique identifier for the token.\n- `--decimals`: Number of decimals (default: 9).\n- `--supply`: Initial supply (default: 1,000,000,000).\n- `--uri`: Metadata URI (default: `https://ipfs.mintme.dev/metadata.json`).\n- `--revoke-mint`: Revoke mint authority.\n- `--revoke-freeze`: Revoke freeze authority.\n\n**Example Command:**\n\n```bash\nnode tests/create-token-terminal.js --name \"MINTME\" --symbol \"MTM\" --decimals 6 --supply 1000000 --uri \"https://ipfs.mintme.dev/metadata.json\" --revoke-mint --revoke-freeze --endpoint \"https://api.devnet.solana.com\" --unique-key \"VERSION_1\"\n```\n\nThis script provides detailed logs of the token creation process, including transaction details and URLs for Solana Explorer.\n\n---\n\n### **3. Create a Wallet Using `create-wallet-json.js`**\n\nBefore creating tokens, you’ll need a wallet file (`wallet.json`). Use the `create-wallet-json.js` script to generate one from a private key.\n\n**Steps:**\n\n1. Replace the placeholder `YOUR_PRIVATE_KEY_HERE` in the script with your Base58-encoded private key.\n2. Run the script:\n\n   ```bash\n   node tests/create-wallet-json.js\n   ```\n\n3. This will generate a `wallet.json` file with your wallet’s secret key.\n\n**Example Code:**\n\n```javascript\nconst bs58 = require(\"bs58\");\nconst fs = require(\"fs\");\n\nconst base58Key = \"YOUR_PRIVATE_KEY_HERE\";\nconst secretKey = bs58.decode(base58Key);\n\nfs.writeFileSync(\"wallet.json\", JSON.stringify(Array.from(secretKey)));\n\nconsole.log(\"✅ wallet.json successfully created\");\n```\n\n---\n\n## Example Scripts 📜\n\nThe project includes example scripts to help you get started quickly:\n\n1. **Simple Token Creation (`create-token-simple.js`)**:\n\n   - Automatically creates a token with predefined parameters.\n\n2. **Terminal-Based Creation (`create-token-terminal.js`)**:\n\n   - Allows token creation directly from the terminal with customizable options.\n\n3. **Wallet Creation (`create-wallet-json.js`)**:\n   - Generates a `wallet.json` file from a private key.\n\n---\n\n## Support 🤝\n\nNeed help? Join our community or check out our documentation:\n\n- **Website**: [mintme.dev](https://mintme.dev)\n- **Issues**: Report bugs or request features on [GitHub](https://github.com/mintme-dev/mintme-sdk/issues)\n\n---\n\n## License ⚖️\n\nThis project is licensed under the MIT License. See the `LICENSE` file for more details.\n\n---\n\nStart building with MintMe SDK today and unleash the power of Solana! 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmintme-dev%2Fmintme-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmintme-dev%2Fmintme-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmintme-dev%2Fmintme-sdk/lists"}