BTB Finance for agents

Protocols / Bridge

LayerZero V2

Cross-chain messaging protocol. Apps send messages and token transfers between chains through the EndpointV2 contract on each chain. Agents can quote and send OFT (omnichain token) transfers and read messaging state.

On-chainMIXED7 contractsWebsite · Docs

get_protocol({ "protocol": "layerzero-v2" })

Risks an agent should know

What an agent can do

send-omnichain-tokenMove an OFT token to another chain
get the token's OFT address for the source chain from its own registry entry or the token issuer's deployments page; call quoteSend(sendParam, false) for the native fee, approve the token if the OFT is an adapter, then send{value: nativeFee}(sendParam, fee, refundAddress). sendParam.dstEid is the destination Endpoint ID, sendParam.to is the recipient as bytes32.
find-endpoint-idGet the LayerZero Endpoint ID for a chain
use the chain's entry on the LayerZero deployments page (mainnet IDs are in the 30xxx range, testnets 40xxx). Ethereum mainnet is 30101.
track-messageCheck the status of a cross-chain message
look it up with the LayerZero Scan tool or API from the LayerZero docs using the source transaction hash.

Contracts

ethereum · chain id 1

ContractAddressKey functionsTry
EndpointV2 (ethereum, Endpoint ID 30101)
bridge
0x1a44076050125825900e736c501f859c50fE728c
source
readeid()
readquote((uint32,bytes32,bytes,bytes,bool),address)
writesend((uint32,bytes32,bytes,bytes,bool),address)
readgetSendLibrary(address,uint32)
readoutboundNonce(address,uint32,bytes32)
readinboundNonce(address,uint32,bytes32)
Full ABI

arbitrum · chain id 42161

ContractAddressKey functionsTry
EndpointV2 (arbitrum, Endpoint ID 30110)
bridge
0x1a44076050125825900e736c501f859c50fE728c
source
readeid()
readquote((uint32,bytes32,bytes,bytes,bool),address)
Full ABI

base · chain id 8453

ContractAddressKey functionsTry
EndpointV2 (base, Endpoint ID 30184)
bridge
0x1a44076050125825900e736c501f859c50fE728c
source
readeid()
readquote((uint32,bytes32,bytes,bytes,bool),address)
Full ABI

optimism · chain id 10

ContractAddressKey functionsTry
EndpointV2 (optimism, Endpoint ID 30111)
bridge
0x1a44076050125825900e736c501f859c50fE728c
source
readeid()
readquote((uint32,bytes32,bytes,bytes,bool),address)
Full ABI

polygon · chain id 137

ContractAddressKey functionsTry
EndpointV2 (polygon, Endpoint ID 30109)
bridge
0x1a44076050125825900e736c501f859c50fE728c
source
readeid()
readquote((uint32,bytes32,bytes,bytes,bool),address)
Full ABI

bsc · chain id 56

ContractAddressKey functionsTry
EndpointV2 (bsc, Endpoint ID 30102)
bridge
0x1a44076050125825900e736c501f859c50fE728c
source
readeid()
readquote((uint32,bytes32,bytes,bytes,bool),address)
Full ABI

avalanche · chain id 43114

ContractAddressKey functionsTry
EndpointV2 (avalanche, Endpoint ID 30106)
bridge
0x1a44076050125825900e736c501f859c50fE728c
source
readeid()
readquote((uint32,bytes32,bytes,bytes,bool),address)
Full ABI

APIs

Deployments metadata
auth: none
https://metadata.layerzero-api.com/v1/metadata/deployments
Every chain's Endpoint ID and LayerZero contract addresses (EndpointV2, message libraries, executor).
LayerZero Scan API
auth: none
https://scan.layerzero-api.com/v1/messages/tx/{txHash}
Track a cross-chain message by its source transaction hash: status and destination transaction.

Notes

No contract addresses are listed. The EndpointV2 deployment table could not be read during research, and a verified address was not found on an official page, so none was included. Get the EndpointV2, SendUln302, ReceiveUln302 and executor addresses for each chain from the LayerZero deployed contracts page (docs.layerzero.network/v2/deployments/deployed-contracts) and verify them there before use. DefiLlama lists about 89 chains for LayerZero V2; the chains field shows the main ones. OFT contract addresses for USDT0 and other tokens are in those tokens' own registry entries. EndpointV2 has the same address on these chains (from LayerZero's own deployments metadata); other chains are listed there too.

Sources

Researched 2026-11-28. Addresses are copied from the official sources above; check them before moving large amounts.