Ship Z Chain slot, International Z Wallet routes, in-app Z Bot APIs, Besu bootstrap, and local/production deployment tooling for digital.omdnl.org. Co-authored-by: Cursor <[email protected]>
12 lines
548 B
PowerShell
12 lines
548 B
PowerShell
# 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
|