Web3 & DApp Development Fundamentals · บทเรียน

การเชื่อมสินทรัพย์

ย้ายสินทรัพย์ระหว่างเลเยอร์

บทเรียน 3 จาก 413 ขั้นตอน

การเชื่อมสินทรัพย์ เป็นบทเรียน Web3 & DApp Development Fundamentals ฟรีบน CoddyKit นี่คือบทเรียนที่ 3 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7 บทเรียนนี้เป็นส่วนหนึ่งของเส้นทางการเรียน Web3 & DApp Development Fundamentals และความก้าวหน้าของคุณจะซิงค์ข้ามเว็บและแอป CoddyKit คอร์ส Web3 & DApp Development Fundamentals มีบทเรียนทั้งหมด 4 บทเรียน

บางส่วนของบทเรียนนี้ยังไม่ได้รับการแปล และแสดงเป็นภาษาอังกฤษ

Why Bridges Are Needed

Each L2 (and each chain) has its own state. To use assets across them you need a bridge that moves value between layers.

Bridges let you take ETH on Ethereum and use it on Arbitrum, Optimism, or other networks.

What a Bridge Does

A bridge coordinates two chains so that locking or burning an asset on one side results in receiving it on the other.

The total supply is preserved — assets are not duplicated, just represented on the destination chain.

Lock and Mint

The most common pattern is lock-and-mint:

  • Lock the asset in a contract on the source chain
  • Mint a wrapped representation on the destination chain
Source (L1): lock 10 ETH in bridge contract
Dest (L2):   mint 10 bridged-ETH to user

Burn and Release

To move back, the reverse happens — burn-and-release:

  • Burn the wrapped asset on the destination chain
  • Release the locked original on the source chain
Dest (L2):  burn 10 bridged-ETH
Source(L1): release 10 ETH from lock

Native vs Third-Party Bridges

A native (canonical) bridge is operated by the rollup itself and is the most trust-minimized path.

Third-party bridges offer faster or cheaper transfers but add extra trust assumptions in their own contracts and operators.

Deposits vs Withdrawals

On rollups, deposits (L1 to L2) are usually fast. Withdrawals (L2 to L1) can be slow.

Optimistic rollup withdrawals wait out the challenge window; ZK rollup withdrawals wait for proof verification.

Liquidity-Based Fast Bridges

To avoid long waits, liquidity bridges keep pools of assets on both chains.

You hand assets to a pool on one side and instantly receive from the pool on the other, paying a small fee instead of waiting.

Wrapped Assets

Bridged tokens are often wrapped representations (like USDC.e). Their value depends entirely on the assets locked in the bridge.

If the bridge is hacked and the locked assets are stolen, the wrapped tokens can become worthless.

Message Passing

Bridges do more than move tokens — they pass messages between chains, enabling cross-chain calls and governance.

This general message-passing capability is the basis of advanced interoperability, covered in a later lesson.

Trust Assumptions Matter

The safety of bridged funds depends on the bridge's design. Always ask:

  • Who can mint the wrapped tokens?
  • How are the locked assets secured?
  • Is it canonical or third-party?

Putting It Together

Bridges move value across layers using lock-and-mint and burn-and-release, with native bridges being most trust-minimized. Liquidity bridges trade fees for speed.

Next we compare specific L2s to learn how to choose one.

Quick Check

Test your bridging knowledge.

Recap: Bridging Assets

You learned that:

  • Bridges move value between layers
  • Lock-and-mint and burn-and-release preserve supply
  • Native bridges are most trust-minimized
  • Liquidity bridges offer speed for a fee
  • Bridge trust assumptions determine safety

Next: choosing the right Layer 2.

เริ่มต้นได้ฟรี

เรียนรู้ Web3 & DApp Development Fundamentals ด้วย AI tutor — ฟรี

เขียนและเรียกใช้โค้ดจริงในเบราว์เซอร์ของคุณ รับความช่วยเหลือทันทีจาก AI tutor 24/7 และเรียนรู้ต่อจากที่คุณหยุดบนเว็บหรือในแอป

คอร์ส
29
บทเรียน
105

คำถามที่พบบ่อย

บทเรียน “การเชื่อมสินทรัพย์” ฟรีหรือไม่

ใช่ — ข้อความเต็มของ “การเชื่อมสินทรัพย์” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส Web3 & DApp Development Fundamentals ให้อัปเกรดเป็น CoddyKit PRO คอร์ส Web3 & DApp Development Fundamentals มีบทเรียนทั้งหมด 4 บทเรียน

คุณจะเรียนรู้อะไรในบทเรียน “การเชื่อมสินทรัพย์”

ย้ายสินทรัพย์ระหว่างเลเยอร์ คุณปฏิบัติ Web3 & DApp Development Fundamentals ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 24/7 ตอบคำถามของคุณขณะที่คุณไปผ่านบทเรียน

คุณต้องมีประสบการณ์ก่อนที่จะเริ่มเรียน Web3 & DApp Development Fundamentals หรือไม่

ไม่จำเป็นต้องมีประสบการณ์มาก่อน Web3 & DApp Development Fundamentals บน CoddyKit ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 3 จากทั้งหมด 4 บทเรียน

บทเรียน “การเชื่อมสินทรัพย์” ใช้เวลานานแค่ไหน

บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย

ฉันเขียนและรันโค้ดในบทเรียน Web3 & DApp Development Fundamentals นี้ได้ไหม

ได้ บทเรียน Web3 & DApp Development Fundamentals ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ

บทเรียนทั้งหมดในหลักสูตรนี้

  1. เหตุใดจึงต้องใช้เลเยอร์ 2
  2. โรลอัป
  3. การเชื่อมสินทรัพย์
  4. การเลือกเลเยอร์ 2
← กลับไปที่ Web3 & DApp Development Fundamentals