0Pricing
Web3 & DApp Development Fundamentals · 课时

跨层转移资产

在不同层之间转移

跨层转移资产 是 CoddyKit 上的免费 Web3 & DApp Development Fundamentals 课时。 这是第 3 节课,共 4 节。 你可以在下方免费阅读本课时的完整内容 — 然后在浏览器中使用内置代码编辑器和全天候 AI 导师进行实践。 这是 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.

常见问题解答

「跨层转移资产」课时是免费的吗?

是的 — 「跨层转移资产」的完整文本可在网页上免费阅读。要进行交互式练习(内置代码编辑器和全天候 AI 导师)并解锁 Web3 & DApp Development Fundamentals 课程的其余内容,请升级到 CoddyKit PRO。 Web3 & DApp Development Fundamentals 课程共包含 4 节课。

「跨层转移资产」这节课中我会学到什么?

在不同层之间转移 你通过在浏览器中直接运行的动手代码来练习 Web3 & DApp Development Fundamentals,全天候 AI 导师会在你学习这节课的过程中回答你的问题。

学习 Web3 & DApp Development Fundamentals 需要有经验吗?

无需任何先前经验。CoddyKit 上的 Web3 & DApp Development Fundamentals 课程适合初学者到高级学习者,你可以从这里开始或从头开始,按照自己的节奏学习。 这是第 3 节课,共 4 节。

「跨层转移资产」课时需要多长时间?

大多数 CoddyKit 课程大约需要 5–10 分钟。每节课都很精短且互动,所以你能稳步进步,并在网页和应用中从离开的地方继续。

我能在这节 Web3 & DApp Development Fundamentals 课中编写并运行代码吗?

能。每节 Web3 & DApp Development Fundamentals 课都包含内置代码编辑器,你可以在浏览器中直接编写并运行真实代码,并获得即时 AI 反馈 — 无需本地设置。

此课程中的所有课时

  1. 为什么需要 Layer 2
  2. Rollups
  3. 跨层转移资产
  4. 选择 Layer 2
← 返回 Web3 & DApp Development Fundamentals