Skip to main content

Usage

Subcommands


send

Simulate a cross-chain bridge transfer between two local chains.

Arguments

Flags

How It Works

  1. Resolves RPC endpoints for both chains from dokrypt.yaml
  2. Determines the sender address (from --from flag or first account on source chain)
  3. Sends a transaction to the bridge contract (0x...B12D) on the source chain
  4. Mines a block on the source chain
  5. Reads the recipient’s current balance on the destination chain
  6. 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.
Queries bridge service endpoints for pending messages and displays:
  • 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

  1. Determines block count from --blocks flag or from the maximum confirmation_blocks in bridge config
  2. Mines blocks on each chain referenced by bridge services
  3. Triggers bridge service relay endpoints
  4. Reports the number of relayed messages

Examples


config

Show the detailed bridge configuration from dokrypt.yaml.
Displays each bridge’s configuration including connected chains, engine, chain IDs, and block times.

Example Output