Files
smom-dbis-138/scripts/deployment/bootstrap-z-chain-anvil.sh
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

17 lines
584 B
Bash

#!/usr/bin/env bash
# Local Z Chain without Docker — Anvil (chainId 900002) for contract deploy / wallet dev.
set -euo pipefail
RPC_PORT="${Z_CHAIN_RPC_PORT:-8546}"
CHAIN_ID=900002
if ! command -v anvil &>/dev/null; then
echo "ERROR: install Foundry (anvil) — https://book.getfoundry.sh/getting-started/installation"
exit 1
fi
echo "Starting Anvil as Z Chain on http://127.0.0.1:$RPC_PORT (chainId $CHAIN_ID)"
echo "Account #0 private key is printed by Anvil — use as PRIVATE_KEY for deploy."
echo ""
exec anvil --chain-id "$CHAIN_ID" --port "$RPC_PORT" --host 127.0.0.1