Skip to content

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

@devmocrea

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.

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