# Build omnichain tokens and more in 5 mins with LayerZero I Mattew Krak

- Channel: [ETHGlobal](https://streameth.org/ethglobal)
- Date: 2025-10-09
- Duration: 21:40
- Topics: LayerZero, omnichain, OFT, ERC20, cross-chain, token bridge, Hardhat, Base, Arbitrum, endpoints, pathways, message encoding, message decoding, push-based messaging, deployment, CLI, adapter, mint, burn, lock, unlock, LZ read, omnichain queries, dev tools, interoperability, Solidity, smart contracts, gas limits, RPC, config, omniall, codec, function call, hackathon, workshop
- Watch: https://streameth.org/watch/yt-ktexzbIm9xM
- YouTube: https://www.youtube.com/watch?v=ktexzbIm9xM

## Description

In this workshop, Matthew Krak demonstrates how to deploy omnichain fungible tokens (OFTs) using LayerZero in under five minutes. He walks through setting up a project with the LayerZero CLI, configuring Hardhat for multiple networks (Base and Arbitrum), and editing LayerZero config files to define endpoints and pathways. The process includes deploying ERC20-compatible OFT contracts, wiring them for cross-chain communication, and sending tokens between chains.

Krak explains the underlying mechanics: OFTs extend ERC20 with bridge logic for debiting (burning/locking) tokens on the source chain and crediting (minting/unlocking) on the destination, using LayerZero’s push-based messaging and message encoding/decoding. He covers advanced topics like correlating send/receive transactions, using OFT adapters to wrap existing tokens, and executing cross-chain function calls. The session concludes with Q&A on LayerZero’s dev tools, omnichain queries, and practical use cases for omnichain interoperability.

00:00 Introduction  
00:10 Workshop Overview & Objectives  
00:37 Project Setup with LayerZero CLI  
01:14 Installing Dependencies & Boilerplate  
02:05 Initializing & Configuring Networks  
02:43 Setting Up LayerZero Endpoints  
03:27 Editing LayerZero Config & Pathways  
04:15 Minting & OFT Contract Details  
05:04 Deploying OFT Contracts  
05:53 Wiring Contracts for Cross-Chain Messaging  
06:22 Sending Tokens Across Chains  
07:14 On-Chain Transaction Analysis  
07:36 OFT Contract Architecture & Logic  
09:41 Message Encoding & Decoding  
10:08 LayerZero Push-Based Messaging Explained  
11:12 Deep Dive: Send Function & Message Codec  
13:22 Message Structure & Decoding  
14:52 How OFT Handles Cross-Chain Transfers  
15:25 LayerZero Documentation & Examples  
15:50 Q&A: Correlating Transactions with LZ Read  
17:28 Advanced LZ Read Use Cases  
18:49 Wrapping Existing Tokens with OFT Adapter  
19:56 Cross-Chain Function Calls Example  
21:10 Closing Remarks & Further Questions

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _  

🇫🇷 *ETHGlobal Cannes*
This workshop is specifically for ETHGlobal Cannes, a 3-day hackathon held July 4-6, bringing together the most skilled web3 developers, designers and product builders from all around the globe for a weekend-long adventure to advance the Ethereum ecosystem! Watch the full ETHGlobal Cannes 2025 playlist here: https://youtube.com/playlist?list=PLXzKMXK2aHh5N2DCwhcEshNW9C8knZ1T-&si=Lc-WOyfkAVP2--R4

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _  

✅ *Follow LayerZero*
X: https://x.com/LayerZero_Core

✅ *Follow ETHGlobal*
X: https://x.com/ETHGlobal​
Warpcast: https://warpcast.com/ethglobal
Website: https://ethglobal.com
YouTube: https://www.youtube.com/c/ETHGlobal 

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _  

_Are you interested in Ethereum development and entrepreneurship?_
👉 Sign up for the next ETHGlobal event: https://ethglobal.com/events
🎁 Get exclusive access and perks with ETHGlobal Plus! https://ethglobal.com/plus
📣 Want us to throw an event in your city? Tell us where! https://ethglobal.com/city

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
