Deploy AI agents on Polygon zkEVM — a fully EVM-equivalent ZK rollup with near-zero fees and Ethereum L1 security. No contract rewrites. No SDK changes. Your Ethereum agent works on zkEVM with zero code modifications.
Polygon zkEVM (chain ID 1101) is Polygon's ZK rollup that achieves full EVM equivalence using the FFLONK proof system. Transactions are batched and proved on Ethereum L1 via ZK validity proofs — no optimistic challenge window, no trust assumptions.
Polygon zkEVM achieves full EVM bytecode equivalence. Every Solidity contract, every Vyper contract, every EVM opcode that works on Ethereum mainnet works identically on Polygon zkEVM. This is a fundamentally different guarantee than "EVM compatibility" — it means compiled bytecode can be deployed without recompilation, modification, or testing.
For AI agents built on Ethereum infrastructure, this means zero migration friction. An agent that calls Aave lending contracts on mainnet can call the same contract interface on Polygon zkEVM. An agent that uses USDC on mainnet uses USDC on zkEVM with identical ABI calls. The agent's code does not change — only the RPC endpoint in its configuration changes.
This makes Polygon zkEVM ideal for teams that have already built on Ethereum and want to reduce transaction costs by 100-1000x without rewriting any infrastructure.
Purple Flea exposes Polygon zkEVM as a first-class chain. Agents get native wallets, ERC-20 transfers, Quickswap V3 swaps, and Aave lending — all via the same Purple Flea API endpoint and API key.
Provision a non-custodial Polygon zkEVM wallet. Supports ETH, MATIC, USDC, WBTC, and all ERC-20 tokens bridged via the official Polygon zkEVM bridge.
Send USDC, WBTC, MATIC or ETH for under $0.01. Agents making routine payment flows or treasury rebalances save orders of magnitude vs mainnet execution.
Swap any token pair on Quickswap V3 — zkEVM's primary DEX with concentrated liquidity pools. The same Quickswap interface as Polygon PoS, running on ZK rollup.
Supply collateral, borrow against it, or earn lending yield on Aave V3 deployed on Polygon zkEVM. Agents can implement autonomous lending strategies with automatic health factor monitoring.
Query real-time gas prices, estimate transaction costs before sending, and monitor fee trends over time. Useful for agents that optimize execution timing by gas cost.
Monitor price discrepancies between Polygon PoS and Polygon zkEVM DEXs. Execute cross-rollup trades via Purple Flea's cross-chain swap routing.
The Purple Flea API uses a consistent interface across all chains. Switching from Ethereum to Polygon zkEVM is a single string change in your chain parameter.
import PurpleFlea from '@purpleflea/sdk'; const flea = new PurpleFlea({ apiKey: process.env.PURPLE_FLEA_API_KEY }); // 1. Create a Polygon zkEVM wallet // Identical call to ethereum — just change chain to 'polygon-zkevm' const wallet = await flea.wallet.create({ chain: 'polygon-zkevm' }); // { address: '0x...', chain: 'polygon-zkevm', chainId: 1101 } // 2. Send USDC on Polygon zkEVM (<$0.01 fee) const transfer = await flea.wallet.send({ chain: 'polygon-zkevm', from: wallet.address, to: '0xRecipient...', amount: '50', token: 'USDC' }); // { txHash: '0x...', fee: '0.0023', feeCurrency: 'ETH' } // 3. Swap MATIC → USDC on Quickswap V3 const swap = await flea.swap.execute({ chain: 'polygon-zkevm', fromToken: 'MATIC', toToken: 'USDC', amount: '100', slippage: 0.5, wallet: wallet.address }); // { txHash: '0x...', amountOut: '87.12', dex: 'Quickswap V3' } // 4. Supply USDC to Aave V3 on Polygon zkEVM const aaveSupply = await flea.defi.lendingSupply({ chain: 'polygon-zkevm', protocol: 'aave-v3', token: 'USDC', amount: '500', wallet: wallet.address }); // { txHash: '0x...', apy: '4.2%', aTokens: '500.00' }
// Migration from Ethereum is ONE line change // Before (Ethereum mainnet): const wallet = await flea.wallet.create({ chain: 'ethereum' }); await flea.swap.execute({ chain: 'ethereum', ... }); // After (Polygon zkEVM — 100x cheaper, same code): const wallet = await flea.wallet.create({ chain: 'polygon-zkevm' }); await flea.swap.execute({ chain: 'polygon-zkevm', ... }); // No ABI changes, no contract redeploys, no SDK updates needed. // Purple Flea handles the RPC, nonce, gas estimation for each chain.
All major tokens bridged via the official Polygon zkEVM bridge are available through Purple Flea. The ecosystem maps closely to Ethereum mainnet — the same tokens, lower fees.
How Polygon zkEVM compares to StarkNet, zkSync Era, Arbitrum, and Optimism — across the metrics that matter most to agent workloads: fees, speed, compatibility, and security.
| Network | EVM Equivalence | Proof Type | Avg Fee | Finality | Aave Available |
|---|---|---|---|---|---|
| Polygon zkEVM | Full (bytecode) | ZK (FFLONK) | <$0.01 | ~10s | Yes (V3) |
| StarkNet | Cairo only | ZK (STARK) | <$0.01 | ~30s | Partial |
| zkSync Era | zkEVM (most opcodes) | ZK (PLONK) | <$0.001 | ~2s | Via Vault |
| Arbitrum One | Full (bytecode) | Optimistic | ~$0.02 | ~1s | Yes (V3) |
| Optimism | Full (bytecode) | Optimistic | ~$0.03 | ~2s | Yes (V3) |
Polygon zkEVM's combination of full EVM equivalence and ZK security makes it the ideal destination for migrating existing Ethereum agent workloads.
Take an agent built for Ethereum mainnet and redeploy on zkEVM with one config change. Same Aave contracts, same Uniswap V3-style pools (Quickswap V3), same ERC-20 tokens. Costs drop by 100x instantly with zero refactoring.
Agents that monitor Aave health factors, automatically repay loans when LTV approaches liquidation, or compound lending yields by recycling interest back into supply positions — all at sub-cent transaction costs on zkEVM.
Price discrepancies between Quickswap on Polygon zkEVM and Quickswap on Polygon PoS create arbitrage opportunities. Execute the arb via Purple Flea cross-chain swap routing — both legs in a single API call.
Agent-managed treasuries that hold USDC, earn Aave lending yield during idle periods, and swap into ETH or WBTC when signal triggers. All on-chain, all auditable, all for less than $0.01 per operation.
Agent-to-agent USDC payments at <$0.01 per transfer. Combine with Purple Flea Escrow to create trustless service-for-payment contracts between agents at negligible cost.
Agents that monitor Aave reserve utilization rates, Quickswap TVL changes, and bridged token flows between Polygon PoS and zkEVM to generate trading signals — read operations cost zero gas.