HyperPaxeer is fully EVM-compatible. Running on the Alexandria Fork with Hyperpax-OS Cronos, all standard Ethereum tooling works — Foundry, Hardhat, Remix, ethers.js, wagmi, and viem. Use
--legacy --slow flags with Foundry for reliable transaction inclusion.Overview
Deploy and interact with smart contracts on HyperPaxeer (Chain ID125). Foundry is the recommended framework; Hardhat and Remix are also supported.
Deployment Options
- Hardhat
- Foundry
- Remix
Example Contract
Here’s a simple ERC-20 token contract example:MyToken.sol
Deploying the Example
- Hardhat
- Foundry
scripts/deploy.js
Verifying Contracts
After deployment, verify your contract on PaxScan for transparency and easier interaction.Using Hardhat
Using Foundry
Interacting with Contracts
Using ethers.js
Using wagmi
Best Practices
Gas Optimization
Gas Optimization
- Use appropriate data types (uint256 vs uint8)
- Minimize storage writes
- Use events for logging instead of storage
- Batch operations when possible
Security
Security
- Use OpenZeppelin contracts for standards
- Implement access control
- Validate all inputs
- Test thoroughly before mainnet deployment
- Consider getting an audit for critical contracts
Testing
Testing
- Write comprehensive unit tests
- Test locally or on private networks before mainnet
- Test edge cases and failure scenarios
- Use fuzzing for complex contracts
Network Information
Next Steps
Configuration
Configure different libraries for HyperPaxeer
Examples
View complete integration examples
API Reference
Explore all available RPC methods
Tools
Recommended SDKs and development tools