Skip to content

Conversation

@pritulsingh
Copy link

@pritulsingh pritulsingh commented Aug 23, 2025

🚀 Feature Request: Add Testnet Support (Sepolia)

Problem

Currently, the AgentKit only supports mainnet chains, which makes it risky and expensive for developers to test their integrations. Testing with real tokens creates barriers for new users and makes development harder.

Proposed Solution

Add Sepolia testnet support with a feature flag system, allowing developers to safely test gasless transactions with test tokens that have no real value.

Benefits

  • Safe testing environment without real money
  • Better onboarding for new developers
  • Foundation for adding more testnets later

Implementation Approach

I can contribute the code changes needed:

What I can implement:

  • Feature flag system (TESTNET_SUPPORT=true/false)
  • Sepolia chain integration using existing viem/chains
  • Environment-based token address configuration
  • TypeScript support and proper error handling

What maintainers need to do:

  • Deploy smart contracts (Paymaster, Account Factory) on Sepolia
  • Set up environment variables for contract addresses
  • Fund the paymaster with test ETH

Technical Details

The implementation uses feature flags to conditionally include Sepolia:

export const TESTNET_SUPPORT = process.env.TESTNET_SUPPORT === 'true' || process.env.NODE_ENV === 'development'; export const supportedChains = { // existing mainnet chains... ...(TESTNET_SUPPORT && { 11155111: sepolia, }) };

All testnet functionality is disabled by default and only enabled when the flag is set.

Next Steps

If this sounds good, I can:

  1. Create a pull request with the code changes
  2. Provide documentation for deploying the required infrastructure
  3. Help test the implementation

The changes are backwards compatible and won't affect existing mainnet functionality.

@Adi-21 could you please review this PR?

@Adi-21
Copy link
Contributor

Adi-21 commented Aug 24, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants