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.
| Action | Action type |
|---|---|
| LayerZero: OFT Quote Send | layerzero/oft-quote-send |
| LayerZero: OFT Quote Transfer | layerzero/oft-quote-oft |
| LayerZero: OFT Send | layerzero/oft-send |
| LayerZero: OFT Approval Required | layerzero/oft-approval-required |
| LayerZero: OFT Shared Decimals | layerzero/oft-shared-decimals |
| LayerZero: OFT Underlying Token | layerzero/oft-token |
| LayerZero: OFT Peer | layerzero/oft-peer |
| LayerZero: OFT Approve | layerzero/oft-approve |
| LayerZero: OFT Check Token Balance | layerzero/oft-check-balance |
| LayerZero: OFT Check Allowance | layerzero/oft-check-allowance |
| LayerZero: Endpoint Get Send Library | layerzero/endpoint-get-send-library |
| LayerZero: Endpoint Get Config | layerzero/endpoint-get-config |
| LayerZero: Endpoint Is Supported EID | layerzero/endpoint-is-supported-eid |
| LayerZero: Endpoint Message Executable | layerzero/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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 137, 8453, 42161, 84532, 11155111 | Network. | |
contractAddress | string | Yes | OFT / OFT Adapter Address. | ||
dstEid | uint32 | Yes | Destination 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. | ||
to | address | Yes | Recipient Address (address). Destination address that receives the tokens. Enter a standard EVM address; it is padded to the bytes32 the OFT expects. | ||
amountLD | uint256 | Yes | Amount (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. | ||
minAmountLD | uint256 | Yes | Minimum 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. | ||
extraOptions | bytes | No | 0x00030100110100000000000000000000000000030d40 | Extra 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. | |
composeMsg | bytes | No | 0x | Compose Message (bytes). Optional bytes delivered to a composer contract on the destination. Use 0x for a plain transfer. | |
oftCmd | bytes | No | 0x | OFT Command (bytes). Implementation-specific command bytes. Unused by the standard OFT; use 0x. | |
payInLzToken | bool | No | false | Pay 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
| Output | Description |
|---|---|
result | The contract function return value |
result.fee | Messaging Fee (nativeFee, lzTokenFee, each in its token’s smallest unit) |
result.fee.nativeFee | Return value: uint256 (BigInt) |
result.fee.lzTokenFee | Return value: uint256 (BigInt) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 137, 8453, 42161, 84532, 11155111 | Network. | |
contractAddress | string | Yes | OFT / OFT Adapter Address. | ||
dstEid | uint32 | Yes | Destination 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. | ||
to | address | Yes | Recipient Address (address). Destination address that receives the tokens. Enter a standard EVM address; it is padded to the bytes32 the OFT expects. | ||
amountLD | uint256 | Yes | Amount (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. | ||
minAmountLD | uint256 | Yes | Minimum 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. | ||
extraOptions | bytes | No | 0x00030100110100000000000000000000000000030d40 | Extra 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. | |
composeMsg | bytes | No | 0x | Compose Message (bytes). Optional bytes delivered to a composer contract on the destination. Use 0x for a plain transfer. | |
oftCmd | bytes | No | 0x | OFT Command (bytes). Implementation-specific command bytes. Unused by the standard OFT; use 0x. |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.oftLimit | Transfer Limits (minAmountLD, maxAmountLD) |
result.oftLimit.minAmountLD | Return value: uint256 (BigInt) |
result.oftLimit.maxAmountLD | Return value: uint256 (BigInt) |
result.oftFeeDetails | Fee Details |
result.oftReceipt | Receipt Preview (amountSentLD, amountReceivedLD) |
result.oftReceipt.amountSentLD | Return value: uint256 (BigInt) |
result.oftReceipt.amountReceivedLD | Return value: uint256 (BigInt) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 137, 8453, 42161, 84532, 11155111 | Network. | |
sendMode | string | No | transaction, private-relay | Send 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. | |
contractAddress | string | Yes | OFT / OFT Adapter Address. | ||
dstEid | uint32 | Yes | Destination 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. | ||
to | address | Yes | Recipient Address (address). Destination address that receives the tokens. Enter a standard EVM address; it is padded to the bytes32 the OFT expects. | ||
amountLD | uint256 | Yes | Amount (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. | ||
minAmountLD | uint256 | Yes | Minimum 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. | ||
nativeFee | uint256 | Yes | Native 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. | ||
extraOptions | bytes | No | 0x00030100110100000000000000000000000000030d40 | Extra 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. | |
composeMsg | bytes | No | 0x | Compose Message (bytes). Optional bytes delivered to a composer contract on the destination. Use 0x for a plain transfer. | |
oftCmd | bytes | No | 0x | OFT Command (bytes). Implementation-specific command bytes. Unused by the standard OFT; use 0x. | |
lzTokenFee | uint256 | No | 0 | LZ 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. | |
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor 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
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How 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. |
included | True 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 137, 8453, 42161, 84532, 11155111 | Network. | |
contractAddress | string | Yes | OFT / OFT Adapter Address. |
Outputs
| Output | Description |
|---|---|
result | Approval Required |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 137, 8453, 42161, 84532, 11155111 | Network. | |
contractAddress | string | Yes | OFT / OFT Adapter Address. |
Outputs
| Output | Description |
|---|---|
result | Shared Decimals |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 137, 8453, 42161, 84532, 11155111 | Network. | |
contractAddress | string | Yes | OFT / OFT Adapter Address. |
Outputs
| Output | Description |
|---|---|
result | Token Address |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 137, 8453, 42161, 84532, 11155111 | Network. | |
contractAddress | string | Yes | OFT / OFT Adapter Address. | ||
eid | uint32 | Yes | Destination 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
| Output | Description |
|---|---|
result | Peer (bytes32) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 137, 8453, 42161, 84532, 11155111 | Network. | |
sendMode | string | No | transaction, private-relay | Send 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. | |
contractAddress | string | Yes | OFT Underlying Token (ERC-20) Address. | ||
spender | address | Yes | Spender (OFT Adapter) (address). The OFT Adapter address that will call transferFrom on this token during send. | ||
amount | uint256 | Yes | Amount (token smallest unit) (uint256). Allowance in the token’s smallest unit. Must cover the amount you intend to send. | ||
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor 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
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How 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. |
included | True 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 137, 8453, 42161, 84532, 11155111 | Network. | |
contractAddress | string | Yes | OFT Underlying Token (ERC-20) Address. | ||
account | address | Yes | Account Address (address). The address whose token balance to read. |
Outputs
| Output | Description |
|---|---|
result | Token Balance (smallest unit) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 137, 8453, 42161, 84532, 11155111 | Network. | |
contractAddress | string | Yes | OFT Underlying Token (ERC-20) Address. | ||
owner | address | Yes | Token Owner (address). The address that granted the approval. | ||
spender | address | Yes | Spender (OFT Adapter) (address). The OFT Adapter address. |
Outputs
| Output | Description |
|---|---|
result | Allowance (smallest unit) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 137, 8453, 42161, 84532, 11155111 | Network. | |
sender | address | Yes | OFT Address (address). The OFT (or any OApp) whose send library to look up. | ||
dstEid | uint32 | Yes | Destination 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
| Output | Description |
|---|---|
result | Send Library Address |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 137, 8453, 42161, 84532, 11155111 | Network. | |
oapp | address | Yes | OFT Address (address). The OFT (or any OApp) whose configuration to read. | ||
lib | address | Yes | Message Library Address (address). The send or receive library to read the configuration from. Use the Endpoint Get Send Library output for the send side. | ||
eid | uint32 | Yes | Remote 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. | ||
configType | uint32 | No | 2 | Config Type (uint32). 1 returns the executor config (maxMessageSize, executor). 2 returns the ULN config (confirmations, required and optional DVNs). |
Outputs
| Output | Description |
|---|---|
result | Config (ABI-encoded bytes) |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 137, 8453, 42161, 84532, 11155111 | Network. | |
eid | uint32 | Yes | Destination 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
| Output | Description |
|---|---|
result | Supported |
success | Whether the operation succeeded |
error | Error 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
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 56, 97, 137, 4217, 4663, 5042, 8453, 9745, 9746, 16602, 16661, 42161, 42431, 43113, 43114, 46630, 80002, 84532, 421614, 5042002, 11155111, 11155420 | Network. | |
srcEid | uint32 | Yes | Source 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. | ||
sender | bytes32 | Yes | Sender (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. | ||
nonce | uint64 | Yes | Message Nonce (uint64). The nonce of the message on its sender, receiver and source endpoint path, as carried in the source chain’s PacketSent event. | ||
receiver | address | Yes | Receiver (OApp on this chain) (address). The OApp the message is addressed to on this chain. |
Outputs
| Output | Description |
|---|---|
result | The contract function return value |
result.state | Execution State (0 not executable: undelivered, nilified or unknown; 1 verified but not executable, 2 executable, 3 executed) |
success | Whether the operation succeeded |
error | Error message if the operation failed |
External documentation: https://docs.layerzero.network/v2/developers/evm/protocol-contracts-overview
Contracts
| Contract | Chain ids |
|---|---|
| OFT / OFT Adapter | any (the address is set on the node) |
| OFT Underlying Token (ERC-20) | any (the address is set on the node) |
| LayerZero EndpointV2 | 1, 10, 137, 8453, 42161, 84532, 11155111 |
| LayerZero EndpointV2View | 1, 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.
| Event | Slug | Event name | Parameters |
|---|---|---|---|
| OFT Sent | oft-sent | OFTSent | bytes32 indexed guid, uint32 dstEid, address indexed fromAddress, uint256 amountSentLD, uint256 amountReceivedLD |