LayerZero V2 Raw Packet Decoder
Decode a raw LayerZero V2 packet — the encodedPayload bytes from a PacketSent event, or copied from LayerZero Scan — into its version, nonce, source/destination eid, sender, receiver, guid, and message fields.
How to use the LayerZero V2 Raw Packet Decoder
- Copy the
encodedPayloadhex from aPacketSentevent — via LayerZero Scan or your block explorer's Logs tab — and paste it into the input field. - Review the decoded version, nonce, source/destination eid, sender, and receiver — each eid shows its resolved chain name, and each sender/receiver shows its extracted EVM address when applicable.
- Check the guid to track the message on LayerZero Scan, and the message hex if you need to hand it off to your OApp's own decoding logic.
- Use the Copy buttons to grab any individual field without retyping it.
How This Tool Works
Paste the raw packet hex — the `encodedPayload` bytes from a `PacketSent` event, or copied from LayerZero Scan — into the input field. Decoding runs automatically about half a second after you stop typing, no button needed.
The packet's fixed 113-byte header is broken out into version, nonce, source eid, sender, destination eid, and receiver — each eid is resolved to a chain name when it's in LayerZero's chain dataset, and each sender/receiver is shown as an extracted, checksummed EVM address whenever its top 12 bytes are zero-padded.
The guid and message — everything after the header — are shown as raw hex. The message isn't decoded any further, since its format is specific to whichever OApp (an OFT, an ONFT, or a custom messaging contract) actually sent it.
Use the Copy button next to any field — including the extracted EVM address, when one is shown — to copy just that value.