Warp Messages
Warp Messages
Overview
Warp messages enable cross-chain communication in Avalanche. Parse and build Warp protocol messages for validator registration, weight updates, and subnet conversions.
Supported Message Types
- RegisterL1ValidatorMessage - Register L1 validators
- L1ValidatorWeightMessage - Update validator weights
- L1ValidatorRegistrationMessage - L1 validator registration
- SubnetToL1ConversionMessage - Subnet to L1 conversion
Quick Start
import {
WarpMessage,
RegisterL1ValidatorMessage,
} from "@avalanche-sdk/interchain/warp";
// Parse a signed Warp message
const signedWarpMsg = WarpMessage.fromHex(signedWarpMsgHex);
// Parse specific message type
const registerMsg = RegisterL1ValidatorMessage.fromHex(signedWarpMsgHex);Methods
Is this guide helpful?