Web3 & DApp Development Fundamentals · Lekcja

Przenoszenie aktywów

Przenoszenie między warstwami

Lekcja 3 z 413 kroki

Przenoszenie aktywów to bezpłatna lekcja Web3 & DApp Development Fundamentals na CoddyKit. To lekcja 3 z 4. Możesz przeczytać całą lekcję poniżej za darmo — a potem ćwiczyć ją interaktywnie w przeglądarce z wbudowanym edytorem kodu i tutorem AI dostępnym 24/7. To część ścieżki edukacyjnej Web3 & DApp Development Fundamentals, a Twój postęp synchronizuje się między webem a aplikacją CoddyKit. Kurs Web3 & DApp Development Fundamentals zawiera 4 lekcji w sumie.

Części tej lekcji nie zostały jeszcze przetłumaczone i są wyświetlane po angielsku.

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.

Bezpłatny start

Ucz się Web3 & DApp Development Fundamentals dzięki korepetycjom AI — za darmo

Pisz i uruchamiaj kod w przeglądarce, otrzymuj natychmiastową pomoc od korepetytora AI dostępnego 24/7 i kontynuuj naukę w sieci lub w aplikacji.

Kursy
29
Lekcje
105

Często zadawane pytania

Czy lekcja „Przenoszenie aktywów” jest bezpłatna?

Tak — pełny tekst „Przenoszenie aktywów” jest dostępny za darmo tutaj w sieci. Aby ćwiczyć ją interaktywnie (wbudowany edytor kodu i tutor AI dostępny 24/7) i odblokować resztę kursu Web3 & DApp Development Fundamentals, przejdź na CoddyKit PRO. Kurs Web3 & DApp Development Fundamentals zawiera 4 lekcji w sumie.

Co nauczysz się w „Przenoszenie aktywów”?

Przenoszenie między warstwami Ćwiczysz Web3 & DApp Development Fundamentals z praktycznym kodem, który uruchamiasz bezpośrednio w przeglądarce, a tutor AI dostępny 24/7 odpowiada na Twoje pytania podczas pracy nad lekcją.

Czy potrzebuję doświadczenia, aby zacząć Web3 & DApp Development Fundamentals?

Nie wymagamy żadnego doświadczenia. Web3 & DApp Development Fundamentals w CoddyKit jest strukturyzowany dla początkujących i zaawansowanych użytkowników, więc możesz zacząć tutaj lub od początku i uczyć się w swoim tempie. To lekcja 3 z 4.

Ile czasu zajmuje lekcja „Przenoszenie aktywów”?

Większość lekcji CoddyKit trwa około 5–10 minut. Każda lekcja to mały, interaktywny krok, dzięki czemu robisz systematyczne postępy i zawsze wracasz dokładnie do tego samego miejsca — na webie i w aplikacji.

Czy mogę pisać i uruchamiać kod w tej lekcji Web3 & DApp Development Fundamentals?

Tak. Każda lekcja Web3 & DApp Development Fundamentals zawiera wbudowany edytor kodu, więc piszesz i uruchamiasz prawdziwy kod bezpośrednio w przeglądarce i od razu otrzymujesz sprzężenie zwrotne od AI — bez konfiguracji na komputerze.

Wszystkie lekcje w tym kursie

  1. Dlaczego Layer 2
  2. Rollupy
  3. Przenoszenie aktywów
  4. Wybór rozwiązania Layer 2
← Powrót do Web3 & DApp Development Fundamentals