
Stuck in EVM’s limits? Now you can enhance your dApp’s UX, logic, and security—without rewriting your stack.
With Flow’s new WAGMI adapter, you can integrate Cadence into your EVM app and unlock powerful cross-VM actions. Offload complex logic to Flow’s fast, secure environment while keeping Ethereum for settlement.
This synergy breaks the bottlenecks of single-chain design—giving your app the best of both worlds.
Flow EVM & Cadence
Flow EVM allows developers to deploy existing smart contracts and leverage established EVM tooling, seamlessly integrating familiar technology with Flow’s superior infrastructure.
Meanwhile, Cadence delivers enhanced security and a more ergonomic development experience than what is possible with Solidity. Its modern, resource-oriented approach facilitates the creation of robust, maintainable contracts, and with full visibility over the EVM state, Cadence can atomically orchestrate EVM transactions within a single composable environment.
Together, these technologies empower developers to build cross-VM applications that blend traditional EVM capabilities with the cutting-edge features of Cadence. This multi-VM environment supports atomic transactions, enabling multiple operations to be bundled into one smooth flow.
By incrementally integrating Cadence, developers can supercharge their applications while preserving their existing investments and infrastructure.
Why Execute Cross-VM Actions?
Imagine the possibilities when you can coordinate actions across both the EVM and Cadence environments in a single transaction. Here are a few examples:
- Seamless NFT Marketplaces: Combine token swaps, approvals, and NFT purchases into one atomic action.
- Efficient DeFi Operations: Merge staking, lending, and yield optimization steps into unified transactions.
- Enhanced Gaming Mechanics: Enable in-game asset transfers and upgrades to occur simultaneously, ensuring a fluid player experience.
- Automated Liquidity Management: Instantly rebalance positions across multiple liquidity pools without manual intervention.
- Robust Governance: Execute multi-step voting processes where all actions trigger together, reducing errors and delays.
A Simple Plugin Makes Cross-VM Actions Easy
Introduced by FLIP 316, the FCL Wagmi adapter is designed to simplify cross-VM operations, empowering developers to effortlessly interact with Cadence. It exists to bridge the gap between Flow’s EVM compatibility and Cadence’s advanced transaction capabilities. Below is a quick example of how you can set it up:
import * as fcl from '@onflow/fcl';
import { flowWallet, walletConnectWallet } from '@onflow/fcl-rainbowkit-adapter';
import { createConfig } from "wagmi"
import { flowTestnet } from 'wagmi/chains';
// Step 1: Configure FCL
fcl.config({
"accessNode.api": "https://rest-testnet.onflow.org",
"walletconnect.projectId": "MY_PROJECT_ID",
});
// Step 2: Configure Wagmi with FCL Rainbowkit Adapter
const connectors = connectorsForWallets([
{
groupName: "Recommended",
wallets: [
flowWallet(),
walletConnectWallet,
// ... my other wallets
],
}
], {
appName: 'RainbowKit App',
projectId: 'MY_PROJECT_ID',
});
const config = createConfig({
chains: [flowTestnet],
connectors,
transports: { [flowTestnet.id]: http() }
});
This configuration sets up your Cadence environment with FCL alongside your existing EVM configuration with Wagmi, enabling you to take advantage of both Cadence & EVM interactions through a single wallet session.
Adding Batch Transactions Walkthrough
Watch our walkthrough video to see how to integrate Cadence batch transactions into your application. This demo highlights how Cadence simplifies batching multiple operations into a single transaction, reducing friction and enhancing the overall user experience.
Video demonstrating the integration of Cadence batch transactions into an existing EVM App
Start Building the Next Generation of Web3 Experiences
Flow’s unique architecture—combining full EVM equivalence with Cadence’s secure, intuitive transaction model—opens up new possibilities for reducing in-app friction and delivering a superior user experience. With the Wagmi adapter for FCL, you can now effortlessly integrate these cross-VM capabilities into your application.
Ready to supercharge your app? Explore our developer documentation and start building innovative, frictionless experiences on Flow today.