HEX
Server: Apache/2.4.57 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2
System: Linux vmi267337.contaboserver.net 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
User: ohirex (1008)
PHP: 8.2.8
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,exec,system,passthru,shell_exec
Upload Files
File: /home/ohirex/web/ohirex.com/public_html/projects/token-2022-auto/index.html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Solana Token-2022 Setup Guide</title>
  <style>
    body {
      background-color: #0d1117;
      color: #c9d1d9;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      line-height: 1.6;
      margin: 0;
      padding: 2rem;
    }
    h1, h2, h3 {
      color: #58a6ff;
    }
    code, pre {
      background: #161b22;
      padding: 0.5rem;
      display: block;
      border-radius: 6px;
      margin: 1rem 0;
      overflow-x: auto;
    }
    a {
      color: #58a6ff;
      text-decoration: none;
    }
    a:hover {
      text-decoration: underline;
    }
    ul {
      margin-left: 1.5rem;
    }
  </style>
</head>
<body>
  <h1>๐Ÿงช Solana Token-2022: Full Setup Guide</h1>
  <p>This guide walks you through creating and deploying a Token-2022 token on Solana devnet using Node.js and CLI tools.</p>

  <h2>๐Ÿ“ฆ Requirements</h2>
  <ul>
    <li>Windows 10/11 or Mac/Linux terminal</li>
    <li><a href="https://nodejs.org">Node.js</a> (LTS version recommended)</li>
    <li><a href="https://docs.solana.com/cli/install-solana-cli-tools">Solana CLI</a></li>
  </ul>

  <h2>โš™๏ธ Step 1: Install Solana CLI</h2>
  <pre><code>iwr https://release.solana.com/v1.18.11/solana-install-init.exe -UseBasicParsing | iex</code></pre>
  <p>Then add this to your PATH (or restart terminal):</p>
  <pre><code>$env:PATH += ";$env:USERPROFILE\.local\bin"</code></pre>

  <h2>๐Ÿ“ Step 2: Create a New Project Folder</h2>
  <pre><code>mkdir token-2022-project
cd token-2022-project
npm init -y</code></pre>

  <h2>๐Ÿ“ฅ Step 3: Install Dependencies</h2>
  <pre><code>npm install bs58</code></pre>

  <h2>๐Ÿ”‘ Step 4: Generate a Solana Wallet</h2>
  <pre><code>solana-keygen new --outfile keypair.json</code></pre>

  <h2>๐ŸŒ Step 5: Set Devnet URL</h2>
  <pre><code>solana config set --url https://api.devnet.solana.com
solana config set --keypair keypair.json</code></pre>

  <h2>๐Ÿ’ง Step 6: Airdrop Some SOL</h2>
  <pre><code>solana airdrop 2</code></pre>

  <h2>๐Ÿ“„ Step 7: Create Your Token Config</h2>
  <pre><code>{
  "name": "MyToken",
  "symbol": "MTK",
  "supply": 1000000,
  "uri": "https://gateway.pinata.cloud/ipfs/yourCID"
}</code></pre>
  <p>Save this as <code>token-config.json</code>.</p>

  <h2>๐Ÿง  Step 8: Add the Full Script</h2>
  <p>Create a file named <code>full-token2022.js</code> and paste in your full deployment script. (See the previous conversation.)</p>

  <h2>โ–ถ๏ธ Step 9: Run the Script</h2>
  <pre><code>node full-token2022.js</code></pre>

  <h2>๐Ÿ“ฆ Done!</h2>
  <p>Your Token-2022 token is now minted with metadata, supply, and saved to <code>token-address.txt</code>.</p>

  <h3>๐Ÿ’ก Next Ideas:</h3>
  <ul>
    <li>Write airdrop script</li>
    <li>Build a DEX listing bot</li>
    <li>Host token metadata with <a href="https://pinata.cloud">Pinata</a></li>
  </ul>

  <p>Created by <strong>Ohirex</strong> โ€” Learn & launch faster ๐Ÿš€</p>
</body>
</html>