Smart Contract VPS — Hardhat + Foundry + Mainnet Fork

Smart Contract VPS — Develop & Deploy
Smart Contracts

Deploy Hardhat and Foundry development environments on a Cloud VPS for smart contract development, testing, and deployment. Local blockchain simulation, mainnet forking, and always-accessible from any device.

Deploy Now — From $5/mo View All Plans
Hardhat
+ Foundry + Ganache
Mainnet
Fork Testing
forge test
100x Faster
$7
Starting /mo
AMD Ryzen CPU
DDR5 RAM
NVMe SSD Storage
10 Gbps Network
DDoS Protected
35+ Locations

Why Develop Smart Contracts on a VPS?

Smart contract development requires local blockchain nodes and testing frameworks. A VPS provides always-accessible dev environment with Hardhat, Foundry, and Ganache — accessible from any device.

Hardhat — EVM Development

Local Ethereum network, deployment scripts, and testing framework. Run local blockchain with hardhat node, deploy contracts, and write Solidity tests with Mocha/Chai.

Foundry — 100x Faster Tests

Foundry's forge test runs Solidity tests in native EVM without JavaScript overhead — 10-100x faster than Hardhat tests. cast CLI for interaction, anvil for local blockchain.

Mainnet Fork Testing

Fork Ethereum mainnet at any block with Hardhat or Anvil. Test contracts against real DeFi protocol state — Uniswap, AAVE, Compound — locally.

Always Accessible Dev Node

Local blockchain on VPS accessible from any device via SSH tunnel. Share development environment with team members.

The Full Stack

Everything you need — installed and configured on your VPS in minutes.

HardhatEVM dev framework
Foundry/ForgeFast Solidity testing
GanacheLocal blockchain
ethers.js / viemContract interaction
Slither + MythrilSecurity analysis
SoliditySmart contract language
GitVersion control
OpenZeppelinContract libraries

Deploy in Minutes

SSH in and follow these commands. Your stack will be live in under 10 minutes.

root@vps:~
# Install Hardhat development environment
[root@vps ~]# curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && apt install nodejs -y
[root@vps ~]# mkdir contracts && cd contracts && npm init -y && npm install --save-dev hardhat && npx hardhat init
[OK] Hardhat project initialized

# Install Foundry for ultra-fast Solidity tests
[root@vps ~]# curl -L https://foundry.paradigm.xyz | bash && foundryup
[OK] forge + cast + anvil installed

# Run Solidity tests — native EVM, no JS overhead
[root@vps ~/contracts]# forge test --gas-report -vvv
[OK] All tests passed | gas report generated

# Fork mainnet for DeFi integration testing
[root@vps ~]# anvil --fork-url https://eth-mainnet.rpc.url --fork-block-number 20000000
[OK] Local mainnet fork — test against real Uniswap state
[root@vps ~]#

Why Host4Fun VPS?

AMD Ryzen CPUs, DDR5 RAM, NVMe SSD, and 10 Gbps network — the infrastructure your workload deserves.

Foundry forge — Native EVM Tests

Solidity tests run in native EVM without JavaScript. 100 test files complete in seconds vs minutes with Hardhat. Built-in fuzzing with configurable random inputs.

Hardhat Node — Local Blockchain

hardhat node runs local Ethereum blockchain with 20 pre-funded accounts. Deploy contracts, test interactions, simulate mainnet conditions. JSON-RPC compatible with MetaMask and ethers.js.

Mainnet Fork Testing

Fork Ethereum mainnet at any block: `hardhat node --fork RPC_URL`. Test contracts interacting with live DeFi protocols without real ETH and without hitting mainnet.

Security Analysis Pipeline

Slither static analysis and Mythril symbolic execution detect vulnerabilities. Run as CI/CD pipeline steps — security scanning on every commit.

Remote VS Code Development

VS Code Remote SSH connects for full IDE on VPS. Consistent dev environment accessible from any computer — laptop, home machine, or library computer.

OpenZeppelin Integration

Install OpenZeppelin contracts as npm dependency. Hardhat compiles and tests inherited ERC-20, ERC-721, and Access Control contracts on local blockchain.

How We Compare

See how Host4Fun Cloud VPS stacks up against the alternatives.

FeatureHost4Fun VPSRemix IDEAlchemy DevHardhat Cloud
Local Blockchain browser only
Mainnet Forking API required
Foundry Support
CI/CD Integration
Monthly Cost$7/mo$0$0–$49+N/A

Use Cases

What developers and teams are building.

DeFi Protocol Development

Develop AMMs, lending protocols, and yield farming with mainnet fork testing against real Uniswap, AAVE, and Compound state.

NFT Contracts

ERC-721 and ERC-1155 NFT contracts with Hardhat. OpenSea compatibility, royalty configuration, and batch minting optimization testing.

Contract Security Auditing

Run Slither, Mythril, and Echidna fuzzer. Persistent Linux environment with all analysis tools installed — automated auditing pipeline.

Solidity Learning

Learn smart contract development on a real environment with local blockchain, testing framework, and deployment tools.

Simple Pricing

All plans include AMD Ryzen CPU, DDR5 RAM, NVMe SSD, DDoS protection, and free SSL. No hidden fees.

Monthly
Yearly Save up to 40%

Starter

$5/mo
  • 1 vCPU
  • 1 GB DDR5
  • 15 GB NVMe NVMe SSD
  • 1 TB Bandwidth
Get Starter

Basic

Recommended for Smart Contract
$7/mo
Smart contract dev — Node.js + Hardhat + Foundry
  • 2 vCPU
  • 2 GB DDR5
  • 30 GB NVMe NVMe SSD
  • 4 TB Bandwidth
Get Basic

Professional ★

$14/mo
  • 4 vCPU
  • 4 GB DDR5
  • 60 GB NVMe NVMe SSD
  • 8 TB Bandwidth
Get Professional

Business

$28/mo
  • 6 vCPU
  • 8 GB DDR5
  • 120 GB NVMe NVMe SSD
  • 16 TB Bandwidth
Get Business

35+ Global Locations

Deploy close to your users for the lowest possible latency.

USA & Canada (15)

Atlanta • New York • Los Angeles • Miami • Dallas • Chicago • Seattle • San Jose • Ashburn • Phoenix • Las Vegas • North Carolina • Oregon • Utah • Canada

Europe (10)

Frankfurt • London • Paris • Amsterdam • Warsaw • Oslo • Helsinki • Madrid • Milan • Bucharest

Asia-Pacific (4)

Singapore • Tokyo • Johor (Malaysia) • Sydney

Frequently Asked Questions

Hardhat vs Foundry?

Foundry recommended for new projects — faster tests, native Solidity, built-in fuzzing. Hardhat better for JavaScript/TypeScript teams and complex deployment scripts. Many teams use both: Foundry for testing, Hardhat for deploy scripts.

What plan for smart contract dev?

Basic ($7/mo, 2 vCPU, 2 GB DDR5) handles Hardhat + Foundry + Ganache. For full Ethereum node alongside development, upgrade to Business ($28/mo, 120 GB NVMe).

How does mainnet forking work?

Configure hardhat.config.js with networks.hardhat.forking.url pointing to an Ethereum RPC endpoint. hardhat node simulates mainnet state at specified block — all contract storage and balances identical to mainnet.

Can I run full Ethereum node on same VPS?

Ethereum full node needs 1+ TB — larger than any VPS plan. Use a separate blockchain-node-vps or free RPC tier from Alchemy/Infura for mainnet forking.

How to run security analysis?

Install Slither: `pip install slither-analyzer` → `slither ./contracts`. Install Mythril: `pip install mythril` → `myth analyze Contract.sol`. Schedule as pre-commit hooks or CI/CD pipeline steps.

Deploy to mainnet from VPS?

Configure hardhat.config.js with network settings. Store private keys in .env (never commit). Run `npx hardhat run scripts/deploy.js --network mainnet`. VPS has stable connection vs laptop with intermittent WiFi.

Related VPS Pages

Explore more VPS hosting options.

Deploy Your Smart Contract VPS Today

Hardhat + Foundry + Ganache. Mainnet forking. Security analysis. From $7/mo.

Deploy Now — From $5/mo