High-performance transaction load generator for EVM networks.
Read the full documentation here: https://tx-spammer.vercel.app/
The documentation includes:
- Architecture: How the
SpamOrchestrator,Worker Pool, andGasGuardianwork together. - Strategies: Configuring Mixed, Write, Read, and Deploy strategies.
- Reference: Full TypeScript API documentation.
npm install @developeruche/tx-spammer-sdkimport { SpamOrchestrator } from '@developeruche/tx-spammer-sdk';
import { parseEther } from 'viem';
const orchestrator = new SpamOrchestrator({
rpcUrl: 'http://127.0.0.1:8545',
maxGasLimit: 29_000_000n,
concurrency: 50, // 50 concurrent workers
strategy: {
mode: 'transfer',
amountPerTx: parseEther('0.001')
}
}, process.env.PRIVATE_KEY);
await orchestrator.setup(parseEther('1')); // Fund workers
await orchestrator.start(); // Unleash the flood- Mass Concurrency: Spawns hundreds of lightweight, ephemeral wallets.
- Gas Guardian: Atomic state management to enforce strict block/sequence gas limits.
- Mixed Strategy: Define complex load profiles (e.g., "60% Writes, 30% Reads, 10% Deploys").
- Zero Config: Works out-of-the-box with Anvil and other Foundry tools.
# Install dependencies
pnpm install
# Build SDK
pnpm --filter sdk build
# Run Docs
pnpm --filter docs dev