← Back to tools

Warp Transfer Message

Encode and decode Hyperlane Warp Route token transfer messages

How It Works

Hyperlane Warp Route token transfers encode transfer data in the message body using a simple format:

  1. Recipient (32 bytes): The destination address in bytes32 format
  2. Amount (32 bytes): The transfer amount as a uint256 (in the token's smallest unit)

The complete message body is 64 bytes (128 hexadecimal characters), with the recipient in the first 32 bytes and the amount in the last 32 bytes.

Note: Amounts should be specified in the token's smallest unit (e.g., wei for ETH, where 1 ETH = 1018 wei).

Example

Encoding

Recipient:

0x1234567890123456789012345678901234567890

Amount (1 ETH in wei):

1000000000000000000

Encoded Message Body:

0x00000000000000000000000012345678901234567890123456789012345678900000000000000000000000000000000000000000000000000de0b6b3a7640000