Explorer V2 Script | Dex
Read-only is dead. V2 scripts come with built-in transaction builders. Users can click "Swap" inside the explorer, and the script generates the calldata required to execute the trade via their wallet (WalletConnect/MetaMask).
(example)
function findArbitrage(pools: any[]): Route[] const opportunities: Route[] = []; for (const poolA of pools) for (const poolB of pools) if (poolA.token0 === poolB.token1 && poolA.token1 === poolB.token0) const priceA = poolA.reserve1 / poolA.reserve0; const priceB = poolB.reserve0 / poolB.reserve1; const profit = (priceB - priceA) / priceA; if (profit > 0.002) // >0.2% after gas opportunities.push( fromToken: poolA.token0, toToken: poolA.token1, dexA: poolA.dex, dexB: poolB.dex, profitPercent: profit * 100 ); dex explorer v2 script
It is important to note that using Dex Explorer V2 violates Roblox's Terms of Service.
Which you plan to target (Ethereum, BNB Chain, Arbitrum?) Read-only is dead
Enter the . This is not merely an incremental update; it is a paradigm shift in how traders, liquidity providers, and developers interact with decentralized exchanges like Uniswap, PancakeSwap, and SushiSwap.
View and, in some versions, modify the properties of objects (Transparency, CanCollide, Name, etc.) on the fly. View and, in some versions, modify the properties
A connection URL from a node provider (e.g., Infura, Alchemy, or QuickNode).
| Feature | V1 Script | V2 Script (This Article) | |---------|-----------|---------------------------| | Data source | Single DEX, single chain | Multi-DEX, multi-chain | | Pool query | Direct RPC calls per pool | Batch Multicall3 + caching | | Price calculation | Simple getReserves() | TWAP, invariant checks, fee-adjusted | | Mempool analysis | ❌ Not included | ✅ Pending tx simulation | | Arbitrage detection | Manual | Graph-based route finder | | Output format | Console log | JSON + WebSocket + CSV |
main();
