Usage
Subcommands
send
Simulate a cross-chain bridge transfer between two local chains.Arguments
Flags
How It Works
- Resolves RPC endpoints for both chains from
dokrypt.yaml - Determines the sender address (from
--fromflag or first account on source chain) - Sends a transaction to the bridge contract (
0x...B12D) on the source chain - Mines a block on the source chain
- Reads the recipient’s current balance on the destination chain
- Adds the bridged amount to the balance on the destination chain via
anvil_setBalance
Examples
This is a simulated bridge for local development. It directly modifies balances on the destination chain — no actual cross-chain messaging occurs.
status
Show the bridge queue status from the configuration.- Service name and connected chains
- Relay delay and confirmation requirements
- Queue status (pending/completed messages)
Example Output
relay
Force relay all pending bridge messages by mining confirmation blocks.Flags
How It Works
- Determines block count from
--blocksflag or from the maximumconfirmation_blocksin bridge config - Mines blocks on each chain referenced by bridge services
- Triggers bridge service relay endpoints
- Reports the number of relayed messages
Examples
config
Show the detailed bridge configuration fromdokrypt.yaml.