Skip to main content

EVM compatible blockchains: shared code, separate state

Updated 6 min readMarkdown

An EVM compatible blockchain runs Ethereum Virtual Machine bytecode and uses Ethereum-style addresses and JSON-RPC calls, so the same wallet and compiled contracts can work on it. Each chain keeps its own balances and contract storage because its nodes execute transactions against that chain’s own state. For more on how assets reach Berachain’s DeFi ecosystem, see the Berachain bridge for the cross-chain transfer process.

Here is the mechanism. Your wallet signs a transaction containing a chain ID, which identifies the network where that transaction is valid. A node on that network executes any EVM bytecode the transaction calls, reads that chain’s balances and storage, and records the result there. Ethereum’s EIP-155 adds the chain ID to the signed transaction to prevent it from being replayed on another chain. Shared execution rules let a wallet form a familiar transaction; they do not make the resulting state change appear elsewhere.

Say you use MetaMask on Ethereum, then switch to Berachain. Your standard account shows the same address, and you can use the same wallet to sign a Berachain transaction. The Berachain node reads your Berachain balance when it processes that transaction. An asset you hold only on Ethereum will not appear in that balance merely because you switched networks. To use it in Berachain’s DeFi ecosystem, you need a supported transfer route and BERA to pay for transactions on Berachain.

What carries over when you switch EVM chains?

EVM compatibility carries over contract bytecode, account formats and much of the software used to interact with them. Solidity compiles to EVM bytecode, so developers can deploy an existing contract without rewriting it for another EVM chain. Familiar deployment and testing tools can connect through that chain’s JSON-RPC endpoint, the interface through which wallets and software ask a node for balances or submit transactions. Berachain describes its execution environment as EVM-identical, which is a stronger claim about matching Ethereum execution than the broad label “EVM compatible.”

An ordinary EVM account address is 20 bytes: it comes from the last 20 bytes of the Keccak-256 hash of a secp256k1 public key. With the same seed phrase and derivation path, your wallet produces the same account address on each EVM chain. In MetaMask, adding a network supplies a JSON-RPC URL and chain ID so the wallet knows which node to contact and which network to put in your signature. Switching the selected network changes the balances and apps you see, even while the account address stays the same.

The same address does not guarantee the same contract. A contract deployed with CREATE gets an address from its deployer’s address and nonce, the count used for that deployer’s transactions. CREATE2 uses the deployer’s address, a chosen salt and a hash of the contract’s creation code. Those inputs can produce different addresses across chains; even a matching address can hold different code because each chain has its own deployment history.

Here is an illustrative check before using a token. You copy its Ethereum contract address into a Berachain block explorer. That address might have no contract on Berachain, or it might contain an unrelated one. Look up the token on the destination chain and confirm its contract address through the project or bridge you intend to use. A familiar ticker or a matching wallet address is not enough to identify the asset.

Execution also has practical limits. EVM compatible chains can adopt different upgrades, precompiles, supported opcodes and gas schedules. A precompile is a built-in function that contracts call through a reserved address, often for cryptographic work. A contract that depends on a particular precompile, opcode or hard-coded Ethereum contract address needs a chain-specific check before deployment. The gas token differs too: Ethereum uses ETH, while Berachain uses BERA.

EVM compatible vs EVM equivalent?

EVM compatible means a chain supports Ethereum-style contract execution and tooling; EVM equivalent is a stronger claim that its execution matches a specified Ethereum version closely enough for the same bytecode to behave the same way. Neither term says that the chains share balances, deployed contracts or governance. When moving an app, identify the exact Ethereum features it uses and confirm that the destination chain supports them.

Can I use the same wallet address on every EVM chain?

A standard account can use the same wallet address on every EVM chain when the wallet uses the same keys and derivation path. Its funds and transaction history remain separate on each network. Smart contract wallets need extra care: their addresses depend on deployment details, and the wallet contract may need to be deployed separately on the destination chain.

Why do I need a bridge between EVM chains?

You need a bridge between EVM chains because compatible execution formats do not move assets between their separate ledgers. Depending on the bridge design, an asset is locked or burned on the source chain and a corresponding asset is minted or released on the destination chain. A Berachain bridge handles that cross-chain transfer so the resulting asset can be used in Berachain’s DeFi ecosystem. Confirm the destination token and route before sending.

Questions readers ask next

What is the chain ID of Berachain?

Berachain mainnet’s chain ID is 80094. The chain ID goes into transaction signatures and helps MetaMask distinguish Berachain mainnet from Ethereum and from Berachain testnets. Berachain lists the current network values in its official network settings.

How do I add Berachain to MetaMask?

Add Berachain in MetaMask’s network settings using the mainnet JSON-RPC URL berachain.com, chain ID 80094 and currency symbol BERA. Save the network and switch to it to view your Berachain balances. You will need BERA on Berachain to pay gas for transactions.

Is Solana EVM compatible?

Solana’s native execution environment is not EVM compatible: Solana programs run in the Solana Virtual Machine, so Ethereum EVM bytecode and account addresses do not carry over directly. Some separate products may provide an EVM layer connected to Solana, but that does not change how native Solana programs run.

What are precompiles in the EVM?

Precompiles are built-in operations exposed to EVM contracts at reserved addresses. They provide functions such as cryptographic calculations more efficiently than ordinary contract bytecode. When a contract calls one, verify that the destination chain supports the same precompile and rules before assuming the call will behave identically.

No comments yet. Be the first to comment.