Warp manage offchain quotes

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

Warp manage offchain quotes is an AI agent skill from the GitHub repository hyperlane-xyz/hyperlane-monorepo. Create and read offchain-signed standing warp fee quotes on a deployed warp route, on both EVM and SVM chains. Use when asked to set, submit, update, or inspect standing (reusable, on-chain-expiring) offchain fee quotes for a warp route via the hyperlane warp quote command. One secp256k1 signer key

How to use this skill

Skill file

Manage Offchain-Signed Warp Fee Quotes

Create and read standing offchain-signed fee quotes on a deployed warp route using hyperlane warp quote (typescript/cli/src/commands/warp-quote.ts). Works on both EVM and SVM chains — the quote signature is secp256k1 ECDSA (Ethereum-style, recovers to an H160), so a single signer key is valid across protocols.

This is the general-purpose quote tool. The set-moonpay-standing-quotes skill is a purpose-built wrapper for the CROSS/moonpay route specifically; use that one for MoonPay, this one for everything else.

Standing vs Transient

Two-Key Model (critical)

There are two distinct keys, do not conflate them:

| Key | Flag / env | Role |

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

| Quote signer | --quote-signer-key or HYP_QUOTE_SIGNER_KEY | 0x-hex secp256k1 private key that signs the quote. Its derived address MUST be in the route's quoteSigners allowlist (typescript/sdk/src/fee/types.ts) or the on-chain verification rejects the quote. |

| Tx submitter | --key.<protocol> (e.g. --key.ethereum, --key.sealevel) | Pays for and sends the on-chain submission transaction. Unrelated to signing. |

If the signer address is not in quoteSigners, the submission will revert — verify membership first.

Commands

Run from typescript/cli. Both require --warp-route-id.

create — submit a standing quote

cd <MONOREPO_ROOT>/typescript/cli && pnpm --silent hyperlane warp quote create \
  --registry http://localhost:<port> \
  --key.<protocol> "$SUBMITTER_KEY_VAR" \
  --quote-signer-key "$HYP_QUOTE_SIGNER_KEY" \
  -w <WARP_ROUTE_ID> \
  --chain <origin-chain> \
  --destination <remote-chain> \
  --recipient <wildcard | native-address> \
  --amount <wildcard> \
  --max-fee <fee-token-smallest-units> \
  --half-amount <fee-token-smallest-units> \
  --ttl <seconds, > 0> \
  [--target-router <native-router-address>]

Flag notes:

read — inspect standing quotes

cd <MONOREPO_ROOT>/typescript/cli && pnpm hyperlane warp quote read \
  --registry http://localhost:<port> \
  -w <WARP_ROUTE_ID> \
  [--chain <chain>] \
  [--recipients <native-addr> --recipients <native-addr> ...] \
  [--out <file.yaml>]

Execution Flow

  1. Verify the signer is allowlisted. Derive the address from the quote signer key and confirm it appears in the route's quoteSigners. If not, stop — the quote would be rejected on-chain.
  2. Start the HTTP registry per /start-http-registry — add --writeMode for create (it writes the quote on-chain); read needs no --writeMode. Note the port + task ID.
  3. For create: first read the current standing quotes for the lane so you can show old→new. Confirm the recipient is valid for the destination protocol; if it's ambiguous or a format mismatch, ask the user before submitting rather than defaulting to wildcard. Then run create. Summarize the lane (origin→destination, recipient/amount scope, maxFee/halfAmount, TTL) in plain language before the raw output.
  4. For read: run and show output directly (no confirmation — read-only). On EVM, remember concrete recipients must be supplied via --recipients to be visible.
  5. Stop the HTTP registry per /stop-http-registry, even on failure.

Caveats

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.