{"id":21089982,"url":"https://github.com/travelxml/create-crypto-currency","last_synced_at":"2026-04-22T08:31:55.113Z","repository":{"id":252792097,"uuid":"841464284","full_name":"TravelXML/CREATE-CRYPTO-CURRENCY","owner":"TravelXML","description":"Create and deploy your own cryptocurrency across multiple networks with this comprehensive step-by-step guide.","archived":false,"fork":false,"pushed_at":"2024-08-20T09:59:07.000Z","size":1282,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-01T02:38:37.767Z","etag":null,"topics":["crypto","cryptocurrencies","cryptocurrency","etherium","mainnet","rinkeby","truffle-framework","web3","web3-dapp","web3js"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/TravelXML.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-08-12T13:10:04.000Z","updated_at":"2025-10-11T23:29:22.000Z","dependencies_parsed_at":"2024-08-12T15:31:40.107Z","dependency_job_id":"16510c31-a32e-49b9-872b-0485b99a6787","html_url":"https://github.com/TravelXML/CREATE-CRYPTO-CURRENCY","commit_stats":null,"previous_names":["travelxml/create-crypto-currency"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TravelXML/CREATE-CRYPTO-CURRENCY","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TravelXML%2FCREATE-CRYPTO-CURRENCY","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TravelXML%2FCREATE-CRYPTO-CURRENCY/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TravelXML%2FCREATE-CRYPTO-CURRENCY/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TravelXML%2FCREATE-CRYPTO-CURRENCY/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TravelXML","download_url":"https://codeload.github.com/TravelXML/CREATE-CRYPTO-CURRENCY/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TravelXML%2FCREATE-CRYPTO-CURRENCY/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32127856,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T07:37:52.372Z","status":"ssl_error","status_checked_at":"2026-04-22T07:37:51.635Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["crypto","cryptocurrencies","cryptocurrency","etherium","mainnet","rinkeby","truffle-framework","web3","web3-dapp","web3js"],"created_at":"2024-11-19T21:33:09.638Z","updated_at":"2026-04-22T08:31:55.094Z","avatar_url":"https://github.com/TravelXML.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create Your Own Cryptocurrency\n\nWe’re going to create and deploy a new cryptocurrency on the Ethereum blockchain using Solidity, Truffle, and Docker. This guide will help you, whether you're new or experienced, to successfully set up and manage your cryptocurrency. I’ve named this crypto AAyu after my son, Aayan.\n![crypto_blog_post_image](https://github.com/TravelXML/CREATE-CRYPTO-CURRENCY/blob/master/1.png)\n\n\n## What is Cryptocurrency?\n\nCryptocurrency is a digital or virtual form of currency that uses cryptography for security. Unlike traditional currencies, cryptocurrencies are decentralized and operate on blockchain technology. They can be used for various purposes such as online transactions, investments, and as tokens in decentralized applications (DApps).\n\n### Purposes of Creating Your Own Cryptocurrency\n\n1. **Decentralized Transactions**: Facilitate peer-to-peer transactions without intermediaries.\n2. **Incentive Programs**: Create tokens to reward users within a platform or ecosystem.\n3. **Fundraising**: Launch an Initial Coin Offering (ICO) to raise funds for a project.\n4. **Custom Applications**: Use tokens within a decentralized application (DApp) for various functionalities.\n5. **Store of Value**: Create a new asset class that can be traded or held as an investment.\n\n### Factors That Influence the Value of Cryptocurrency\n\n1. **Utility**: The more useful your token is within an ecosystem, the higher its demand and value.\n2. **Scarcity**: Limiting the total supply of your cryptocurrency can increase its value through scarcity.\n3. **Adoption**: Wider acceptance and usage of your token can drive up its value.\n4. **Security**: Strong security measures can build trust and increase value.\n5. **Market Trends**: External factors such as regulations and market sentiment also play a role in value.\n\n## Crawl the codes\n\n1. **contracts/**: Contains Solidity smart contracts defining the cryptocurrency.\n2. **migrations/**: Holds migration scripts to deploy the contracts to Ethereum.\n3. **test/**: Includes test scripts to ensure the contracts function correctly.\n4. **Dockerfile**: Defines the environment setup for the project using Docker.\n5. **docker-compose.yml**: Manages multi-container Docker applications.\n6. **truffle-config.js**: Configures the Truffle framework for different networks.\n\nThese files collectively allow you to create, deploy, and test a cryptocurrency on Ethereum. \n\n\n## Step-by-Step Setup Guide\n\n### Prerequisites\n\nBefore you begin, ensure you have the following tools installed:\n\n- [Docker](https://www.docker.com/): Containerization platform to create a consistent environment.\n- [Node.js](https://nodejs.org/): JavaScript runtime required to run Truffle.\n- [Truffle](https://www.trufflesuite.com/): Development framework for Ethereum.\n- [Git](https://git-scm.com/): Version control system to manage code.\n\n### 1. Setting Up the Environment\n\n#### Step 1: Clone the Repository\n\nStart by cloning the project repository from GitHub:\n\n```bash\ngit clone https://github.com/TravelXML/CREATE-CRYPTO-CURRENCY.git\ncd CREATE-CRYPTO-CURRENCY\n```\n\n#### Step 2: Build the Docker Environment\n\nNext, build the Docker environment:\n\n```bash\ndocker build -t aayu-token-env .\n```\n\n#### Step 3: Run the Docker Container\n\nRun the Docker container with the following command:\n\n```bash\ndocker run -it -p 8545:8545 aayu-token-env\n```\n![image](https://github.com/user-attachments/assets/1f75a53e-102e-418b-98bc-2345406a27c0)\n![image](https://github.com/user-attachments/assets/89cd2d25-2864-4d73-8a83-1ee7b939d4eb)\n\n\n#### Step 4: Access the Docker Container\n\nTo access the running Docker container:\n\n```bash\ndocker ps\ndocker exec -it \u003ccontainer_id_or_name\u003e /bin/bash\n```\n\nReplace `\u003ccontainer_id_or_name\u003e` with your container ID or name. You can find this from the output of `docker ps`.\n\n### 2. Installing Dependencies\n\n#### Step 1: Navigate to the Project Directory\n\nInside the Docker container, navigate to the project directory:\n\n```bash\ncd /usr/src/app\n```\n\n#### Step 2: Install OpenZeppelin Contracts\n\nInstall the required OpenZeppelin contracts:\n\n```bash\nnpm install @openzeppelin/contracts@4.8.0\n```\n\nVerify the installation by listing the contents:\n\n```bash\nls node_modules/@openzeppelin/contracts/security/\n```\n\n#### Step 3: Install Truffle HDWallet Provider\n\nInstall the Truffle HDWallet Provider:\n\n```bash\nnpm install @truffle/hdwallet-provider\n```\n\n### 3. Compiling and Deploying the Smart Contract\n\n#### Step 1: Compile the Smart Contracts\n\nCompile your smart contracts using Truffle:\n\n```bash\ntruffle compile\n```\n\n#### Step 2: Deploy in Development Environment\n\nDeploy the smart contracts to the development network:\n\n```bash\ntruffle migrate --network development --verbose-rpc\n```\n\n#### Step 3: Deploy to Rinkeby Test Network\n\nDeploy the smart contracts to the Rinkeby test network:\n\n```bash\ntruffle migrate --network rinkeby\n```\n\n### 4. Testing and Interacting with Your Token\n\n#### Step 1: Access Truffle Console\n\nAfter deployment, access the Truffle console:\n\n```bash\ntruffle console --network development\n```\n\n#### Step 2: Interact with the Token\n\nInside the Truffle console, you can interact with your AAyuToken smart contract:\n\n```javascript\nconst token = await AAyuToken.deployed();\nconst name = await token.name();\nconsole.log(name); // Should print \"AAyu\"\n\nconst symbol = await token.symbol();\nconsole.log(symbol); // Should print \"AYU\"\n\nconst totalSupply = await token.totalSupply();\nconsole.log(totalSupply.toString()); // Prints total supply in wei\n\nconst balance = await token.balanceOf(\"YOUR_ACCOUNT_ADDRESS\");\nconsole.log(balance.toString()); // Prints balance of the specified account in wei\n```\n\nReplace `\"YOUR_ACCOUNT_ADDRESS\"` with the actual Ethereum address.\n\n### Deploying to Rinkeby or Mainnet\n\n#### 1. Prerequisites\n\nBefore deploying to Rinkeby or the Ethereum mainnet, ensure you have:\n\n1. **Infura Project ID**: Infura provides Ethereum nodes as a service. You need a project ID to connect to Rinkeby or Mainnet.\n   - Sign up at [Infura.io](https://infura.io/).\n   - Create a new project and copy the project ID.\n\n2. **Etherscan API Key**: You need this key to verify your contract on Etherscan.\n   - Sign up at [Etherscan.io](https://etherscan.io/).\n   - Obtain your API key from the API section of your profile.\n\n3. **Mnemonic**: A 12-word phrase used to generate your Ethereum accounts. Ensure that you store this securely and do not share it publicly.\n\n#### 2. Configuring Truffle for Rinkeby or Mainnet\n\nModify your `truffle-config.js` file to include configurations for Rinkeby and Mainnet.\n\nHere is an example configuration:\n\n```javascript\nconst HDWalletProvider = require('@truffle/hdwallet-provider');\nconst mnemonic = \"your 12-word mnemonic here\";\nconst infuraProjectId = \"YOUR_INFURA_PROJECT_ID\";\n\nmodule.exports = {\n  networks: {\n    rinkeby: {\n      provider: () =\u003e new HDWalletProvider(mnemonic, `https://rinkeby.infura.io/v3/${infuraProjectId}`),\n      network_id: 4,       // Rinkeby's id\n      gas: 4500000,        // Gas limit used for deploys\n      gasPrice: 10000000000 // 10 gwei\n    },\n    mainnet: {\n      provider: () =\u003e new HDWalletProvider(mnemonic, `https://mainnet.infura.io/v3/${infuraProjectId}`),\n      network_id: 1,       // Mainnet's id\n      gas: 4500000,        // Gas limit used for deploys\n      gasPrice: 10000000000 // 10 gwei\n    }\n  },\n  compilers: {\n    solc: {\n      version: \"0.8.0\"   // Fetch exact version from solc-bin (default: truffle's version)\n    }\n  },\n  plugins: [\n    'truffle-plugin-verify'\n  ],\n  api_keys: {\n    etherscan: \"YOUR_ETHERSCAN_API_KEY\"\n  }\n};\n```\n\n#### 3. Deploying to Rinkeby Test Network\n\nTo deploy your smart contract to Rinkeby, use the following command:\n\n```bash\ntruffle migrate --network rinkeby\n```\n\n#### 4. Deploying to Mainnet\n\nTo deploy your smart contract to the Ethereum mainnet, use the following command:\n\n```bash\ntruffle migrate --network mainnet\n```\n\n#### 5. Verifying Your Contract on Etherscan\n\nIf you want to verify your contract on Etherscan after deploying it to Rinkeby or Mainnet, use the following command:\n\n```bash\ntruffle run verify AAyuToken --network rinkeby\n```\n\nFor Mainnet:\n\n```bash\ntruffle run verify AAyuToken --network mainnet\n```\n\nMake sure you replace `AAyuToken` with the name of your contract.\n\n#### 6. Accessing the Deployed Contract\n\nOnce deployed, you can interact with your token as described earlier using the Truffle console or by interacting with the contract address directly through Etherscan or a wallet like MetaMask.\n\n\n\nBy following this you can successfully create, deploy, and manage your AAyuToken cryptocurrency on the Ethereum blockchain. Whether you are experimenting on the Rinkeby test network or launching on the Ethereum mainnet, this guide provides all the necessary steps to bring your cryptocurrency project to life. \n\nHappy Coding! \nShow some ❤️\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftravelxml%2Fcreate-crypto-currency","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftravelxml%2Fcreate-crypto-currency","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftravelxml%2Fcreate-crypto-currency/lists"}