Skip to content

feat(bench): add mainnet funding mode via --fund-key#2906

Open
decofe wants to merge 1 commit intomainfrom
zygis/bench-mainnet-mode
Open

feat(bench): add mainnet funding mode via --fund-key#2906
decofe wants to merge 1 commit intomainfrom
zygis/bench-mainnet-mode

Conversation

@decofe
Copy link
Member

@decofe decofe commented Feb 27, 2026

Adds --fund-key to tempo-bench for mainnet benchmarking where the faucet is unavailable.

When --fund-key <hex> is set:

  • Funds bench accounts via TIP-20 transfers from the provided key instead of the faucet
  • Skips DEX/ERC-20 setup (uses --fund-token directly)
  • Forces TIP-20-only transfers between existing signer accounts (warm transfers)

New flags:

  • --fund-key: private key of a funded account (also reads TEMPO_BENCH_FUND_KEY env)
  • --fund-token: TIP-20 token to distribute (defaults to --fee-token)
  • --fund-amount: amount per account in smallest unit (default: 1B)

Example:

tempo-bench run-max-tps --tps 5000 --duration 60 --accounts 100 \
  --fund-key 0x... --target-urls https://rpc.tempo.xyz

Prompted by: zygis

Co-authored-by: Zygis <zygis@tempo.xyz>
Amp-Thread-ID: https://ampcode.com/threads/T-019c9fb8-0fd7-7488-8eac-6773ea995e46
Co-authored-by: Amp <amp@ampcode.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants