Now that the dust has settled and we're all friends again
Let's see how this Solana-Base actually works under the hood
Settle down, relax and follow the thread 🧵
How do transactions actually move between Base and Solana?
- The transaction is submitted on Base/Solana
- The gas is paid and the instruction is added to the transaction
- Validators pick up events and relay the transaction to Solana/Base
What if you want to bridge a Solana token to Base?
Just deploy a canonical ERC20 using the `CrossChainERC20Factory` (and seed liquidity).
Every SPL token gets its own deterministic ERC20 on Base. No permission needed.
Works both ways - deploy Base tokens on Solana too.
The bridge uses a simple rule to prevent double-spending:
On the source chain: Native tokens get LOCKED and Foreign tokens get BURNED
On the destination chain: Native tokens get UNLOCKED and Foreign tokens get MINTED
As you can see, those are some basic token bridging mechanics. However, the REAL INNOVATION lies in the Twin Contracts:
- Every Solana wallet gets a deterministic smart contract on Base called a "Twin"
- So your Solana wallet can interact with Base protocols using its Twin
When you attach one or more contract call(s) to a bridge message:
- The call executes FROM your Twin contract
- The Twin becomes msg.sender on Base
- You get full Base smart contract capabilities from Solana