Skip to Content

LayerZero action reference

This page is generated from the plugin registry. Do not edit it by hand.

LayerZero V2 omnichain tokens (OFT) and endpoint configuration. Quote crosschain transfer fees, inspect an OFT’s peers and approval needs, read the send library and DVN configuration a lane will use before you trust it, and send an OFT across chains paying the quoted fee.

For guidance and examples see the LayerZero guide.

Set actionType in a node’s config to the action type shown under each heading. See the workflow definition page for the node format.

Read actions return the value under result: a single unnamed output is result, a named one is result.<name>, and several outputs are result.<name> each. Reference it as {{@nodeId:Label.result}}. Integer Solidity types are passed as decimal strings.

ActionAction type
LayerZero: OFT Quote Sendlayerzero/oft-quote-send
LayerZero: OFT Quote Transferlayerzero/oft-quote-oft
LayerZero: OFT Sendlayerzero/oft-send
LayerZero: OFT Approval Requiredlayerzero/oft-approval-required
LayerZero: OFT Shared Decimalslayerzero/oft-shared-decimals
LayerZero: OFT Underlying Tokenlayerzero/oft-token
LayerZero: OFT Peerlayerzero/oft-peer
LayerZero: OFT Approvelayerzero/oft-approve
LayerZero: OFT Check Token Balancelayerzero/oft-check-balance
LayerZero: OFT Check Allowancelayerzero/oft-check-allowance
LayerZero: Endpoint Get Send Librarylayerzero/endpoint-get-send-library
LayerZero: Endpoint Get Configlayerzero/endpoint-get-config
LayerZero: Endpoint Is Supported EIDlayerzero/endpoint-is-supported-eid
LayerZero: Endpoint Message Executablelayerzero/endpoint-view-executable

LayerZero: OFT Quote Send

Action type: layerzero/oft-quote-send. Connection: not required.

Quote the LayerZero messaging fee for sending an OFT to another chain. The nativeFee output is denominated in wei of the source chain’s gas token.

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 137, 8453, 42161, 84532, 11155111Network.
contractAddressstringYesOFT / OFT Adapter Address.
dstEiduint32YesDestination Endpoint ID (uint32). LayerZero endpoint ID of the destination chain. This is not the EVM chain ID. Ethereum 30101, Base 30184, Arbitrum One 30110, Optimism 30111, Polygon 30109, BNB Chain 30102, Avalanche 30106, Plasma 30383, 0G 30388, Tempo 30410, Robinhood Chain 30416, Arc 30417, Ethereum Sepolia 40161, Base Sepolia 40245, Arbitrum Sepolia 40231, Optimism Sepolia 40232, Polygon Amoy 40267, BNB Chain Testnet 40102, Avalanche Fuji 40106, Plasma Testnet 40417, 0G Galileo 40428, Tempo Testnet 40444, Robinhood Chain Testnet 40451, Arc Testnet 40434.
toaddressYesRecipient Address (address). Destination address that receives the tokens. Enter a standard EVM address; it is padded to the bytes32 the OFT expects.
amountLDuint256YesAmount (token smallest unit) (uint256). Amount to send in the token’s smallest unit (local decimals). The OFT removes dust below its shared decimals; see the quote-oft receipt for the exact amount received.
minAmountLDuint256YesMinimum Amount (token smallest unit) (uint256). Slippage floor in the token’s smallest unit. Both the quote and the send revert with SlippageExceeded when the amount after dust removal and fees falls below this, so leave headroom instead of matching the amount exactly.
extraOptionsbytesNo0x00030100110100000000000000000000000000030d40Extra Options (bytes). Encoded executor options for the destination. The default is a Type 3 blob with 200,000 gas for lzReceive, which is enough for a plain token receive; raise it when the receiver runs logic. An OFT that sets enforced options combines these with them rather than overriding or ignoring them, so the executor sums the lzReceive gas and this default adds to the fee the quote returns.
composeMsgbytesNo0xCompose Message (bytes). Optional bytes delivered to a composer contract on the destination. Use 0x for a plain transfer.
oftCmdbytesNo0xOFT Command (bytes). Implementation-specific command bytes. Unused by the standard OFT; use 0x.
payInLzTokenboolNofalsePay In LZ Token (bool). false quotes the fee in the chain’s native gas token, which is what the send pays as msg.value. true quotes in ZRO; only OFTs that enable ZRO payment accept it.

Outputs

OutputDescription
resultThe contract function return value
result.feeMessaging Fee (nativeFee, lzTokenFee, each in its token’s smallest unit)
result.fee.nativeFeeReturn value: uint256 (BigInt)
result.fee.lzTokenFeeReturn value: uint256 (BigInt)
successWhether the operation succeeded
errorError message if the operation failed

External documentation: https://docs.layerzero.network/v2/developers/evm/oft/quickstart 

LayerZero: OFT Quote Transfer

Action type: layerzero/oft-quote-oft. Connection: not required.

Preview an OFT transfer: the transfer limits, the fee breakdown, and the exact amounts debited and received after dust removal.

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 137, 8453, 42161, 84532, 11155111Network.
contractAddressstringYesOFT / OFT Adapter Address.
dstEiduint32YesDestination Endpoint ID (uint32). LayerZero endpoint ID of the destination chain. This is not the EVM chain ID. Ethereum 30101, Base 30184, Arbitrum One 30110, Optimism 30111, Polygon 30109, BNB Chain 30102, Avalanche 30106, Plasma 30383, 0G 30388, Tempo 30410, Robinhood Chain 30416, Arc 30417, Ethereum Sepolia 40161, Base Sepolia 40245, Arbitrum Sepolia 40231, Optimism Sepolia 40232, Polygon Amoy 40267, BNB Chain Testnet 40102, Avalanche Fuji 40106, Plasma Testnet 40417, 0G Galileo 40428, Tempo Testnet 40444, Robinhood Chain Testnet 40451, Arc Testnet 40434.
toaddressYesRecipient Address (address). Destination address that receives the tokens. Enter a standard EVM address; it is padded to the bytes32 the OFT expects.
amountLDuint256YesAmount (token smallest unit) (uint256). Amount to send in the token’s smallest unit (local decimals). The OFT removes dust below its shared decimals; see the quote-oft receipt for the exact amount received.
minAmountLDuint256YesMinimum Amount (token smallest unit) (uint256). Slippage floor in the token’s smallest unit. Both the quote and the send revert with SlippageExceeded when the amount after dust removal and fees falls below this, so leave headroom instead of matching the amount exactly.
extraOptionsbytesNo0x00030100110100000000000000000000000000030d40Extra Options (bytes). Encoded executor options for the destination. The default is a Type 3 blob with 200,000 gas for lzReceive, which is enough for a plain token receive; raise it when the receiver runs logic. An OFT that sets enforced options combines these with them rather than overriding or ignoring them, so the executor sums the lzReceive gas and this default adds to the fee the quote returns.
composeMsgbytesNo0xCompose Message (bytes). Optional bytes delivered to a composer contract on the destination. Use 0x for a plain transfer.
oftCmdbytesNo0xOFT Command (bytes). Implementation-specific command bytes. Unused by the standard OFT; use 0x.

Outputs

OutputDescription
resultThe contract function return value
result.oftLimitTransfer Limits (minAmountLD, maxAmountLD)
result.oftLimit.minAmountLDReturn value: uint256 (BigInt)
result.oftLimit.maxAmountLDReturn value: uint256 (BigInt)
result.oftFeeDetailsFee Details
result.oftReceiptReceipt Preview (amountSentLD, amountReceivedLD)
result.oftReceipt.amountSentLDReturn value: uint256 (BigInt)
result.oftReceipt.amountReceivedLDReturn value: uint256 (BigInt)
successWhether the operation succeeded
errorError message if the operation failed

External documentation: https://docs.layerzero.network/v2/developers/evm/oft/quickstart 

LayerZero: OFT Send

Action type: layerzero/oft-send. Connection: required (web3).

Send an OFT to another chain, paying the LayerZero messaging fee quoted by OFT Quote Send. Pass the same SendParam values as the quote, and the quote’s fee.nativeFee (in wei) as Native Fee; KeeperHub attaches the same amount as the transaction’s value. On an OFT Adapter that reports Approval Required, run OFT Approve first.

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 137, 8453, 42161, 84532, 11155111Network.
sendModestringNotransaction, private-relaySend as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored.
contractAddressstringYesOFT / OFT Adapter Address.
dstEiduint32YesDestination Endpoint ID (uint32). LayerZero endpoint ID of the destination chain. This is not the EVM chain ID. Ethereum 30101, Base 30184, Arbitrum One 30110, Optimism 30111, Polygon 30109, BNB Chain 30102, Avalanche 30106, Plasma 30383, 0G 30388, Tempo 30410, Robinhood Chain 30416, Arc 30417, Ethereum Sepolia 40161, Base Sepolia 40245, Arbitrum Sepolia 40231, Optimism Sepolia 40232, Polygon Amoy 40267, BNB Chain Testnet 40102, Avalanche Fuji 40106, Plasma Testnet 40417, 0G Galileo 40428, Tempo Testnet 40444, Robinhood Chain Testnet 40451, Arc Testnet 40434.
toaddressYesRecipient Address (address). Destination address that receives the tokens. Enter a standard EVM address; it is padded to the bytes32 the OFT expects.
amountLDuint256YesAmount (token smallest unit) (uint256). Amount to send in the token’s smallest unit (local decimals). The OFT removes dust below its shared decimals; see the quote-oft receipt for the exact amount received.
minAmountLDuint256YesMinimum Amount (token smallest unit) (uint256). Slippage floor in the token’s smallest unit. Both the quote and the send revert with SlippageExceeded when the amount after dust removal and fees falls below this, so leave headroom instead of matching the amount exactly.
nativeFeeuint256YesNative Fee (wei) (uint256). The messaging fee in wei of this chain’s gas token, as OFT Quote Send returns it in fee.nativeFee. KeeperHub attaches the same amount as the transaction’s value. Enter more than the quote for headroom: the endpoint refunds the excess to the address that pays for the send.
extraOptionsbytesNo0x00030100110100000000000000000000000000030d40Extra Options (bytes). Encoded executor options for the destination. The default is a Type 3 blob with 200,000 gas for lzReceive, which is enough for a plain token receive; raise it when the receiver runs logic. An OFT that sets enforced options combines these with them rather than overriding or ignoring them, so the executor sums the lzReceive gas and this default adds to the fee the quote returns.
composeMsgbytesNo0xCompose Message (bytes). Optional bytes delivered to a composer contract on the destination. Use 0x for a plain transfer.
oftCmdbytesNo0xOFT Command (bytes). Implementation-specific command bytes. Unused by the standard OFT; use 0x.
lzTokenFeeuint256No0LZ Token Fee (uint256). Fee in ZRO, in its smallest unit. Leave at 0: this action pays in the native gas token. Paying in ZRO needs a quote with Pay In LZ Token set to true and a ZRO allowance, and is not supported here.
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship.

Outputs

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added.
includedTrue when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent.

External documentation: https://docs.layerzero.network/v2/developers/evm/oft/quickstart 

LayerZero: OFT Approval Required

Action type: layerzero/oft-approval-required. Connection: not required.

Decide the approval step from this value alone. true means this OFT pulls the underlying token via transferFrom before sending, so run OFT Approve first; false means it does not. Do not infer it from whether the underlying token differs from the OFT: a Mint and Burn OFT Adapter is a separate contract holding mint and burn rights over an existing token, so it reports false while still having a distinct token address.

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 137, 8453, 42161, 84532, 11155111Network.
contractAddressstringYesOFT / OFT Adapter Address.

Outputs

OutputDescription
resultApproval Required
successWhether the operation succeeded
errorError message if the operation failed

External documentation: https://docs.layerzero.network/v2/developers/evm/oft/quickstart 

LayerZero: OFT Shared Decimals

Action type: layerzero/oft-shared-decimals. Connection: not required.

The decimal precision shared across every chain this OFT lives on. Amounts below this precision are removed as dust before sending.

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 137, 8453, 42161, 84532, 11155111Network.
contractAddressstringYesOFT / OFT Adapter Address.

Outputs

OutputDescription
resultShared Decimals
successWhether the operation succeeded
errorError message if the operation failed

External documentation: https://docs.layerzero.network/v2/developers/evm/oft/quickstart 

LayerZero: OFT Underlying Token

Action type: layerzero/oft-token. Connection: not required.

Do not infer approval from this address; use OFT Approval Required for that. This is the ERC-20 the OFT moves: its own address when the OFT is itself the token, and a separate contract for every adapter style, both the one that locks and unlocks the token and the one that mints and burns a separate token it has rights over. So a differing address does not tell you an approval is needed.

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 137, 8453, 42161, 84532, 11155111Network.
contractAddressstringYesOFT / OFT Adapter Address.

Outputs

OutputDescription
resultToken Address
successWhether the operation succeeded
errorError message if the operation failed

External documentation: https://docs.layerzero.network/v2/developers/evm/oft/quickstart 

LayerZero: OFT Peer

Action type: layerzero/oft-peer. Connection: not required.

The OFT address registered on a destination chain, as bytes32. All zeros means the lane is not wired and a send to it will revert.

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 137, 8453, 42161, 84532, 11155111Network.
contractAddressstringYesOFT / OFT Adapter Address.
eiduint32YesDestination Endpoint ID (uint32). LayerZero endpoint ID of the destination chain, not the EVM chain ID. Ethereum 30101, Base 30184, Arbitrum One 30110, Optimism 30111, Polygon 30109, BNB Chain 30102, Avalanche 30106, Plasma 30383, 0G 30388, Tempo 30410, Robinhood Chain 30416, Arc 30417, Ethereum Sepolia 40161, Base Sepolia 40245, Arbitrum Sepolia 40231, Optimism Sepolia 40232, Polygon Amoy 40267, BNB Chain Testnet 40102, Avalanche Fuji 40106, Plasma Testnet 40417, 0G Galileo 40428, Tempo Testnet 40444, Robinhood Chain Testnet 40451, Arc Testnet 40434.

Outputs

OutputDescription
resultPeer (bytes32)
successWhether the operation succeeded
errorError message if the operation failed

External documentation: https://docs.layerzero.network/v2/developers/evm/oft/quickstart 

LayerZero: OFT Approve

Action type: layerzero/oft-approve. Connection: required (web3).

Approve an OFT Adapter to pull the underlying token. Needed only when OFT Approval Required returns true.

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 137, 8453, 42161, 84532, 11155111Network.
sendModestringNotransaction, private-relaySend as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored.
contractAddressstringYesOFT Underlying Token (ERC-20) Address.
spenderaddressYesSpender (OFT Adapter) (address). The OFT Adapter address that will call transferFrom on this token during send.
amountuint256YesAmount (token smallest unit) (uint256). Allowance in the token’s smallest unit. Must cover the amount you intend to send.
gasLimitMultiplierstringNoGas Limit.
sponsorGasbooleanNotrueSponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship.

Outputs

OutputDescription
successWhether the operation succeeded
errorError message if the operation failed
transactionHashTransaction hash
transactionLinkExplorer link to transaction
routeHow KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added.
includedTrue when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent.

External documentation: https://docs.layerzero.network/v2/developers/evm/oft/quickstart 

LayerZero: OFT Check Token Balance

Action type: layerzero/oft-check-balance. Connection: not required.

Balance of the underlying token for an address. Use before a send to catch an empty wallet early.

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 137, 8453, 42161, 84532, 11155111Network.
contractAddressstringYesOFT Underlying Token (ERC-20) Address.
accountaddressYesAccount Address (address). The address whose token balance to read.

Outputs

OutputDescription
resultToken Balance (smallest unit)
successWhether the operation succeeded
errorError message if the operation failed

External documentation: https://docs.layerzero.network/v2/developers/evm/oft/quickstart 

LayerZero: OFT Check Allowance

Action type: layerzero/oft-check-allowance. Connection: not required.

How much of the underlying token an OFT Adapter may pull from an owner. Use to confirm the approve step took effect.

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 137, 8453, 42161, 84532, 11155111Network.
contractAddressstringYesOFT Underlying Token (ERC-20) Address.
owneraddressYesToken Owner (address). The address that granted the approval.
spenderaddressYesSpender (OFT Adapter) (address). The OFT Adapter address.

Outputs

OutputDescription
resultAllowance (smallest unit)
successWhether the operation succeeded
errorError message if the operation failed

External documentation: https://docs.layerzero.network/v2/developers/evm/oft/quickstart 

LayerZero: Endpoint Get Send Library

Action type: layerzero/endpoint-get-send-library. Connection: not required.

The message library an OFT will send through for a destination. Resolves to the LayerZero default when the OFT has not chosen one.

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 137, 8453, 42161, 84532, 11155111Network.
senderaddressYesOFT Address (address). The OFT (or any OApp) whose send library to look up.
dstEiduint32YesDestination Endpoint ID (uint32). LayerZero endpoint ID of the destination chain, not the EVM chain ID. Ethereum 30101, Base 30184, Arbitrum One 30110, Optimism 30111, Polygon 30109, BNB Chain 30102, Avalanche 30106, Plasma 30383, 0G 30388, Tempo 30410, Robinhood Chain 30416, Arc 30417, Ethereum Sepolia 40161, Base Sepolia 40245, Arbitrum Sepolia 40231, Optimism Sepolia 40232, Polygon Amoy 40267, BNB Chain Testnet 40102, Avalanche Fuji 40106, Plasma Testnet 40417, 0G Galileo 40428, Tempo Testnet 40444, Robinhood Chain Testnet 40451, Arc Testnet 40434.

Outputs

OutputDescription
resultSend Library Address
successWhether the operation succeeded
errorError message if the operation failed

External documentation: https://docs.layerzero.network/v2/developers/evm/protocol-contracts-overview 

LayerZero: Endpoint Get Config

Action type: layerzero/endpoint-get-config. Connection: not required.

The ABI-encoded configuration an OFT uses on a library for a destination: the DVN set and confirmations (config type 2) or the executor (config type 1). Compare the bytes against a stored baseline to detect a security configuration change before sending.

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 137, 8453, 42161, 84532, 11155111Network.
oappaddressYesOFT Address (address). The OFT (or any OApp) whose configuration to read.
libaddressYesMessage Library Address (address). The send or receive library to read the configuration from. Use the Endpoint Get Send Library output for the send side.
eiduint32YesRemote Endpoint ID (uint32). LayerZero endpoint ID of the remote chain, not the EVM chain ID. Ethereum 30101, Base 30184, Arbitrum One 30110, Optimism 30111, Polygon 30109, BNB Chain 30102, Avalanche 30106, Plasma 30383, 0G 30388, Tempo 30410, Robinhood Chain 30416, Arc 30417, Ethereum Sepolia 40161, Base Sepolia 40245, Arbitrum Sepolia 40231, Optimism Sepolia 40232, Polygon Amoy 40267, BNB Chain Testnet 40102, Avalanche Fuji 40106, Plasma Testnet 40417, 0G Galileo 40428, Tempo Testnet 40444, Robinhood Chain Testnet 40451, Arc Testnet 40434.
configTypeuint32No2Config Type (uint32). 1 returns the executor config (maxMessageSize, executor). 2 returns the ULN config (confirmations, required and optional DVNs).

Outputs

OutputDescription
resultConfig (ABI-encoded bytes)
successWhether the operation succeeded
errorError message if the operation failed

External documentation: https://docs.layerzero.network/v2/developers/evm/configuration/dvn-executor-config 

LayerZero: Endpoint Is Supported EID

Action type: layerzero/endpoint-is-supported-eid. Connection: not required.

Whether this endpoint supports the destination endpoint ID. It returns true only when both the default send library and the default receive library are set, meaning messages can be routed there at all.

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 137, 8453, 42161, 84532, 11155111Network.
eiduint32YesDestination Endpoint ID (uint32). LayerZero endpoint ID of the destination chain, not the EVM chain ID. Ethereum 30101, Base 30184, Arbitrum One 30110, Optimism 30111, Polygon 30109, BNB Chain 30102, Avalanche 30106, Plasma 30383, 0G 30388, Tempo 30410, Robinhood Chain 30416, Arc 30417, Ethereum Sepolia 40161, Base Sepolia 40245, Arbitrum Sepolia 40231, Optimism Sepolia 40232, Polygon Amoy 40267, BNB Chain Testnet 40102, Avalanche Fuji 40106, Plasma Testnet 40417, 0G Galileo 40428, Tempo Testnet 40444, Robinhood Chain Testnet 40451, Arc Testnet 40434.

Outputs

OutputDescription
resultSupported
successWhether the operation succeeded
errorError message if the operation failed

External documentation: https://docs.layerzero.network/v2/developers/evm/protocol-contracts-overview 

LayerZero: Endpoint Message Executable

Action type: layerzero/endpoint-view-executable. Connection: not required.

Where an inbound message stands on this (the destination) chain: 0 not executable, 1 verified but waiting on an earlier nonce, 2 ready to execute, 3 executed. 0 covers a message the verifiers have not delivered yet, a nonce the receiving app nilified (permanently dead), and identifiers that name no message, so it is not a state that must eventually change. 3 is also returned when the receiving app cleared, skipped or burned the message, and for any nonce the path has already moved past, so it confirms the path is past that nonce rather than that this message arrived. It does not cover lzCompose.

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringYeschain ids 1, 10, 56, 97, 137, 4217, 4663, 5042, 8453, 9745, 9746, 16602, 16661, 42161, 42431, 43113, 43114, 46630, 80002, 84532, 421614, 5042002, 11155111, 11155420Network.
srcEiduint32YesSource Endpoint ID (uint32). LayerZero endpoint ID of the chain the message was sent from, not the EVM chain ID. Ethereum 30101, Base 30184, Arbitrum One 30110, Optimism 30111, Polygon 30109, BNB Chain 30102, Avalanche 30106, Plasma 30383, 0G 30388, Tempo 30410, Robinhood Chain 30416, Arc 30417, Ethereum Sepolia 40161, Base Sepolia 40245, Arbitrum Sepolia 40231, Optimism Sepolia 40232, Polygon Amoy 40267, BNB Chain Testnet 40102, Avalanche Fuji 40106, Plasma Testnet 40417, 0G Galileo 40428, Tempo Testnet 40444, Robinhood Chain Testnet 40451, Arc Testnet 40434. A non-EVM source works too, with its sender given as bytes32: Solana 30168, Solana Devnet 40168.
senderbytes32YesSender (OApp on the source chain) (bytes32). The OApp that sent the message on the source chain, for example the source OFT. An EVM address is padded to the bytes32 the endpoint expects; a bytes32 value is passed as-is.
nonceuint64YesMessage Nonce (uint64). The nonce of the message on its sender, receiver and source endpoint path, as carried in the source chain’s PacketSent event.
receiveraddressYesReceiver (OApp on this chain) (address). The OApp the message is addressed to on this chain.

Outputs

OutputDescription
resultThe contract function return value
result.stateExecution State (0 not executable: undelivered, nilified or unknown; 1 verified but not executable, 2 executable, 3 executed)
successWhether the operation succeeded
errorError message if the operation failed

External documentation: https://docs.layerzero.network/v2/developers/evm/protocol-contracts-overview 

Contracts

ContractChain ids
OFT / OFT Adapterany (the address is set on the node)
OFT Underlying Token (ERC-20)any (the address is set on the node)
LayerZero EndpointV21, 10, 137, 8453, 42161, 84532, 11155111
LayerZero EndpointV2View1, 10, 56, 97, 137, 4217, 4663, 5042, 8453, 9745, 9746, 16602, 16661, 42161, 42431, 43113, 43114, 46630, 80002, 84532, 421614, 5042002, 11155111, 11155420

Events

Events a workflow can listen for with an Event trigger.

EventSlugEvent nameParameters
OFT Sentoft-sentOFTSentbytes32 indexed guid, uint32 dstEid, address indexed fromAddress, uint256 amountSentLD, uint256 amountReceivedLD