This guide walks you through sending interchain messages between two local Anvil nodes using the Hyperlane CLI.
http://localhost:8545
.31337
.http://localhost:8546
.31338
.anvilnode1
. The CLI will ask you for the details of your chains including chainId and RPC URLs. Repeat the process for anvilnode2
.
This process will create metadata.yaml
files under $HOME/.hyperlane/chains/anvilnode1
and $HOME/.hyperlane/chains/anvilnode2
.
Example metadata:
export HYP_KEY='<YOUR_PRIVATE_KEY>'
to set the private key as an environment variable../configs/core-config.yaml
.
Next, deploy the core contracts:
anvilnode1
. The CLI will deploy Mailbox, Interchain Security Modules (ISMs), and other required contracts. Repeat the process for anvilnode2
.
Once complete, you’ll find addresses.yaml
in $HOME/.hyperlane/chains/anvilnode1
and $HOME/.hyperlane/chains/anvilnode2
, with the deployed contract addresses.
anvilnode1
to anvilnode2
.
anvilnode1
) and the destination chain (anvilnode2
).
--relay
flag automatically relays the message to the
destination chain.Validator has announced signature storage location, locations: ["file:///tmp/hyperlane-validator-signatures-local"].
--checkpointSyncer.path
) to prevent overwriting.--block-time 1 flag
when starting Anvil to auto-mine blocks every second.