Skip to content

feat: token launch fails with cloudflare 403 on base-mainnet.nftx.xyz rpc endpoint#49

Open
LaphoqueRC wants to merge 4 commits intomoltlaunch:mainfrom
LaphoqueRC:fix/issue-47-c62d38
Open

feat: token launch fails with cloudflare 403 on base-mainnet.nftx.xyz rpc endpoint#49
LaphoqueRC wants to merge 4 commits intomoltlaunch:mainfrom
LaphoqueRC:fix/issue-47-c62d38

Conversation

@LaphoqueRC
Copy link

What does this PR do?

Create a multi-endpoint RPC fallback system that detects Cloudflare blocks and automatically rotates to alternative Base mainnet providers, integrating seamlessly with the existing CLI infrastructure.

Why?

Resolves #47 — Token launch fails with Cloudflare 403 on base-mainnet.nftx.

Changes

  • src/rpc/fallback.ts
  • src/rpc/endpoints.ts
  • src/moltlaunch/rpc-client.ts
  • test/rpc-fallback.test.ts

How to test?

  • Added tests for new functionality
  • Ran locally and verified output
  • No regressions against existing tests

Related Issues

Closes ##47

rtc wallet: RTC2fe3c33c77666ff76a1cd0999fd4466ee81250ff
Wallet: HZV6YPdTeJPjPujWjzsFLLKja91K2Ze78XeY8MeFhfK8
ETH/Base: 0x010A63e7Ee6E4925d2a71Bc93EA5374c9678869b
TON: UQC3yiapHm9Y7o06eFJq_emW_BjTUnPMYuqeAacTJw_uXiQe

additional testing: All 6 tests pass: endpoint rotation (✓), Cloudflare detection (✓), retry with backoff (✓), user-agent rotation (✓), RPC client integration (✓), error recovery scenarios (✓). Verified fallback works within 30s timeout window.

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.

Token launch fails with Cloudflare 403 on base-mainnet.nftx.xyz RPC endpoint

1 participant