Code Examples

Take a look at our Solidity Examples repo or some great template code to get you started
It is recommended User Applications implement NonblockingLzApp which allow you to easily override two functions to add send + receive functionality to your contracts!
npm: @layerzerolabs/solidity-examples
NPM package to go along with solidity-examples
The primary way to implement LayerZero messaging in your contract is to use LzApp or NonblockingLzApp:
There are implementations of tokens (OFT) and nfts (ONFT) as well: