Reproducible launch-rehearsal harness. Brings up:
- An
anvilnode (local devchain or a fork of a real network) - The x402 echo server (
Raxol.Payments.EchoServer)
Both stay running until you Ctrl-C the task. Anvil's stdout is
streamed inline so you can see block production + tx receipts.
mix raxol_payments.anvil
mix raxol_payments.anvil --fork-url https://mainnet.base.org
mix raxol_payments.anvil --anvil-port 8545 --echo-port 4002Options
--fork-urlexternal RPC URL to fork (omit for local devchain)--anvil-portanvil port, default8545--echo-portecho server port, default4002--echo-amountecho server price in atomic USDC units (default10_000= $0.01)--block-timeanvil block time in seconds (default1)--chain-idchain id, default31337(anvil default; ignored when forking)--no-echoskip the echo server (anvil only)
Next steps after start
In another terminal:
cd packages/raxol_payments
export PREFLIGHT_TARGET_URL=http://localhost:4002/anything
mix run examples/preflight.exsRequires
anvil on $PATH (Foundry). If anvil is missing, the task aborts
with a clear error before starting anything else.