Deploy the RiscZeroMockVerifier contract to Sepolia or any EVM-compatible chain.
- Node.js 18+ and npm/pnpm
- Foundry (
forge) for compiling the contract artifact - RPC endpoint for your target chain (e.g. Sepolia Infura/Alchemy URL)
- A funded deployer private key for that chain
npm installforge build --contracts lib/risc0-ethereum/contracts/src/test/RiscZeroMockVerifier.solCreate a .env with the following:
RPC_URL=https://sepolia.infura.io/v3/<your-project-id>
PRIVATE_KEY=0xabc... # funded deployernpx ts-node deploy.ts- Swap
--rpc-url(orRPC_URL) for the target chain’s endpoint. - Use a private key funded on that network.
- Adjust
--gas-priceif the chain does not support EIP-1559 or if you want to force a specific price.
--rpc-url/RPC_URL/ETH_RPC_URL--private-key/PRIVATE_KEY/DEPLOYER_KEY--selector/SELECTOR(defaults to0x00000000)--artifact-path/ARTIFACT_PATH--gas-price/GAS_PRICE(gwei)--confirmations/CONFIRMATIONS(integer, defaults to 1)