Deploy and verify smart contracts on HyperX blockchain with ease.
| Parameter | Value |
|---|---|
| Network Name | HyperX |
| RPC URL | https://rpc.hyperx.technology |
| Chain ID | 88888 |
| Currency Symbol | HPX |
| Block Explorer | https://scan.hyperx.technology |
Use these values to add HyperX network to MetaMask or any Web3 wallet.
git clone https://github.com/ryderhiew/hyperx-starter-kit.git
cd hyperx-starter-kit
npm installcp .env.example .envEdit .env with your private key:
PRIVATE_KEY=your_private_key_without_0xnpm run deploynpm run verify 0xYourContractAddresshyperx-starter-kit/
├── contracts/
│ └── MyToken.sol # Example ERC20 token
├── scripts/
│ ├── deploy.js # Deployment script
│ └── verify-api.js # API verification (recommended)
├── .env.example
├── package.json
└── README.md
HyperX uses EVM version paris (pre-Shanghai). This means:
- ✅ Solidity 0.8.x works fine
- ✅ OpenZeppelin contracts work fine
- ❌
PUSH0opcode is NOT supported
The starter kit handles this automatically by setting evmVersion: "paris" in compiler settings.
- Add your
.solfile tocontracts/ - Update
scripts/deploy.js:- Change
CONTRACT_FILEandCONTRACT_NAME - Update
CONSTRUCTOR_ARGSto match your constructor
- Change
- Update
scripts/verify-api.js:- Change
CONTRACT_FILEandCONTRACT_NAME - Update
CONSTRUCTOR_ARGSto match your deployment
- Change
- Run
npm run deploy - Run
npm run verify 0xYourAddress
The verify-api.js script verifies directly via BlockScout API - faster and more reliable than the web UI.
npm run verify 0xYourContractAddressBefore running, edit scripts/verify-api.js and update:
// Your constructor argument types and values
const CONSTRUCTOR_ARGS = {
types: ["string", "string", "uint8", "uint256", "address"],
values: [
"My Token", // name
"MTK", // symbol
18, // decimals
1000000, // initialSupply
"0xYourAddress" // owner
]
};If you prefer the web interface:
- Go to https://scan.hyperx.technology/contract-verification
- Select "Solidity (Standard JSON input)"
- Upload the
verify.jsongenerated after deployment - Contract name: Your contract name (e.g.,
MyToken) - Compiler version: Must match
solcversion inpackage.json - Check "Try to fetch constructor arguments automatically"
The compiler version for verification must exactly match what's in package.json:
"solc": "^0.8.28"The verification script auto-detects this. If verifying manually, find your exact version:
node -e "console.log(require('solc').version())"Your compiler is targeting Shanghai EVM. This starter kit already sets evmVersion: "paris" - if you see this error with your own setup, add it to your compiler settings.
Use the API verification instead: npm run verify 0xYourAddress
Check if https://rpc.hyperx.technology is accessible.
Make sure CONSTRUCTOR_ARGS in verify-api.js exactly matches what you passed during deployment. Order and types matter!
MIT