Skip to content

enhancement: integrate RPC node fallback logic in public client #21

Description

@devmocrea

Description

Implement an automated RPC endpoint fallback mechanism in publicClient configurations to ensure high application availability.

Technical Specification

  • Update the public client configuration in apps/web/src/lib/susuchain-celo.ts.
  • Use viem's fallback() transport:
    transport: fallback([http('https://forno.celo.org'), http('https://celo-mainnet.infura.io/v3/YOUR-KEY')])
  • Apply similar fallback configurations to the Stacks network options.

Acceptance Criteria

  • Frontend seamlessly falls back to the secondary RPC node if the primary node goes offline.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions