- Make Sure you have Node (& NPM) and VSCode Installed.
- Create a new folder and open it in VSCode
- Create these 4 files:
freeze-script.js
config.json
package.json
generate-wallet.js
- Paste the below code into those files
- Open Terminal in VS Code and run the command
- Run this code to generate a private key and wallet address pair (or use existing private key from Phantom)
- Paste the Private Key in 'config.js' file
- Import the Wallet to Phantom and Fund it with SOL
- Create a Token with that wallet WITH Freeze Authority Enabled
You can keep the Mint Authority Disabled. - Paste the Mint Address in 'config.js' file
- Get an RPC endpoint from Helius or Alchemy and paste it into 'config.js'
- Go to PumpSwap and Add Liquidity to your token.
- Copy the Pump Fun Holder Wallet and paste it into 'config.js'
==== 'config.js' is now fully configured ==== - Now start running the script.
Anyone who buys the token will be frozen immediately and won't be able to sell. - Remove the Liquidity on PumpSwap.