Files
smom-dbis-138/scripts/deployment/bootstrap-z-chain-anvil.ps1
T
zardashtways44andCursor e35ad9047c feat: add Z Chain 900002 ecosystem with wallet, Z Bot, and deploy scripts
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]>
2026-07-06 05:25:10 -07:00

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