LayerZero OApp Options (Executor Options) Builder

Build and decode LayerZero V2 executor options bytes — lzReceive gas, native drop, lzCompose gas, and ordered execution — for use with send() or setEnforcedOptions().

How to use the LayerZero OApp Options Builder

  1. On the Build tab, choose an option type for each row and fill in its fields — add more rows to combine options (for example, an lzReceive gas option alongside a Native Drop).
  2. Click Encode to get the combined options hex value.
  3. On the Decode tab, paste an existing options hex value and click Decode to see each entry's type and fields.
  4. Use the Copy buttons to copy the encoded output, or an individual decoded entry's raw bytes.

How This Tool Works

Switch to the Build tab, pick an option type for each row (lzReceive Gas, Native Drop, lzCompose Gas, or Ordered Execution), fill in its fields, and add as many rows as you need — LayerZero OApps commonly combine an lzReceive gas option with a Native Drop or lzCompose option in a single call.

Click Encode to produce the combined `_options` hex value, ready to pass to `send()`'s `_options` parameter, or into the `options` field of a `setEnforcedOptions()` entry.

Switch to the Decode tab, paste an existing options hex value, and click Decode to see each entry broken down into its type and human-readable fields.

Frequently Asked Questions

Advertisement

Related tools

Advertisement