/** * @name perps/perp-rpc-fallback * @description Solana RPC fallback for Adrena on-chain reads inside the perps * package. The hosted gateway often runs from datacenter IPs that the public * mainnet RPC throttles with HTTP 426; reads retried across fallback * endpoints keep the tools functional. * @module perps/perp-rpc-fallback */ import { Connection } from '@solana/web3.js'; import type { SapMcpContext } from '../../core/src/types.js'; /** * Run an on-chain read against the context connection, retrying across * public RPC fallbacks when the primary endpoint fails. * @param context — SAP MCP context. * @param operation — Read to execute with each candidate connection. * @param label — Error label used when every endpoint fails. * @returns The first successful result. * @throws Aggregated error when all endpoints fail. */ export declare function withPerpsConnectionFallback(context: SapMcpContext, operation: (connection: Connection, rpcUrl: string) => Promise, label?: string): Promise; //# sourceMappingURL=perp-rpc-fallback.d.ts.map