# Local Z Chain without Docker — Anvil (chainId 900002) $ErrorActionPreference = "Stop" $RpcPort = if ($env:Z_CHAIN_RPC_PORT) { $env:Z_CHAIN_RPC_PORT } else { "8546" } if (-not (Get-Command anvil -ErrorAction SilentlyContinue)) { Write-Error "Install Foundry (anvil): https://book.getfoundry.sh/getting-started/installation" } Write-Host "Starting Anvil as Z Chain on http://127.0.0.1:$RpcPort (chainId 900002)" Write-Host "Use Anvil account #0 private key as PRIVATE_KEY for deploy." anvil --chain-id 900002 --port $RpcPort --host 127.0.0.1