Warp balances

From hyperlane-xyz/hyperlane-monorepo · View interactive version

Warp balances is an AI agent skill from the GitHub repository hyperlane-xyz/hyperlane-monorepo. Check token balances for each leg of a warp route. Shows collateral locked (for collateral/native legs) and total circulating supply (for synthetic legs). Use when you want to inspect the current state of a warp route's liquidity.

How to use this skill

Skill file

Warp Route Balances

Run hyperlane warp balances to display the token balance of each leg in a warp route.

Usage

hyperlane warp balances \
  --warp-route-id <SYMBOL/chains> \
  --registry <path-or-url>

Options

| Flag | Description |

| ------------------------ | -------------------------------------------------------------------------------------------------------------- |

| --warp-route-id / -w | Warp route ID (e.g. ETH/ethereum-arbitrum). Prompts interactively if omitted. |

| --registry / -r | Registry path or URL. Defaults to the public Hyperlane registry. |

| --chains | Filter to specific chains (space-separated). |

| --out / -o | Write results to a JSON or YAML file. |

| --address | User address to check balances for. Shows the user's token balance on each chain instead of collateral/supply. |

| --raw | Show balances in base units (without decimal formatting). |

Output columns

| Column | Description |

| ---------- | -------------------------------------------------------------------------------------------- |

| (index) | Chain name |

| Symbol | Token symbol |

| Standard | Token standard (e.g. EvmHypCollateral, EvmHypSynthetic) |

| Address | Router contract address |

| Balance | Collateral locked / circulating supply (default), or user's token balance (with --address) |

Instructions

  1. Determine the warp route ID and registry to use. If not provided, ask the user.
  1. Run the command:

```test

hyperlane warp balances --warp-route-id <ID> --registry <REGISTRY>

```

  1. If the user wants to save the output, add --out balances.json.
  1. If the user wants to filter to specific chains:

```test

hyperlane warp balances --warp-route-id <ID> --registry <REGISTRY> --chains ethereum arbitrum

```

  1. If the user wants to check their own token balance on each leg, add --address:

```test

hyperlane warp balances --warp-route-id <ID> --registry <REGISTRY> --address <USER_ADDRESS>

```

  1. If the user wants raw base-unit amounts (no decimal formatting), add --raw:

```test

hyperlane warp balances --warp-route-id <ID> --registry <REGISTRY> --raw

```

  1. Report the balances to the user, noting:

Common use cases

Example — route liquidity

hyperlane warp balances --warp-route-id USDC/base-optimism --registry ~/hyperlane-registry
Warp route balances:

┌──────────┬────────┬──────────────────────┬────────────┬────────────────┐
│ (index)  │ Symbol │ Standard             │ Address    │ Balance        │
├──────────┼────────┼──────────────────────┼────────────┼────────────────┤
│ base     │ USDC   │ EvmHypCollateral     │ 0x5244...  │ 4,231,876.12   │
│ optimism │ USDC   │ EvmHypSynthetic      │ 0x2DBe...  │ 4,231,876.12   │
└──────────┴────────┴──────────────────────┴────────────┴────────────────┘

Status: collateral matches synthetic supply (4,231,876.12)

Example — user balances

hyperlane warp balances --warp-route-id USDC/base-optimism --registry ~/hyperlane-registry --address 0xYourAddress
Warp route balances for 0xYourAddress:

┌──────────┬────────┬──────────────────────┬────────────┬──────────┐
│ (index)  │ Symbol │ Standard             │ Address    │ Balance  │
├──────────┼────────┼──────────────────────┼────────────┼──────────┤
│ base     │ USDC   │ EvmHypCollateral     │ 0x5244...  │ 500.00   │
│ optimism │ USDC   │ EvmHypSynthetic      │ 0x2DBe...  │ 250.00   │
└──────────┴────────┴──────────────────────┴────────────┴──────────┘

Example — raw base units

hyperlane warp balances --warp-route-id USDC/base-optimism --registry ~/hyperlane-registry --raw
Warp route balances:

┌──────────┬────────┬──────────────────────┬────────────┬───────────────┐
│ (index)  │ Symbol │ Standard             │ Address    │ Balance       │
├──────────┼────────┼──────────────────────┼────────────┼───────────────┤
│ base     │ USDC   │ EvmHypCollateral     │ 0x5244...  │ 4231876120000 │
│ optimism │ USDC   │ EvmHypSynthetic      │ 0x2DBe...  │ 4231876120000 │
└──────────┴────────┴──────────────────────┴────────────┴───────────────┘

Status: collateral matches synthetic supply (4231876120000)
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.