Probe all regions for a given network and return them sorted by latency. The first element is the fastest healthy region.
const results = await autoSelectRegion(SynapseNetwork.Mainnet);const best = results[0]; // fastest healthy regionconst client = SynapseClient.fromEndpoint({ ...best.endpoint, apiKey: '...' }); Copy
const results = await autoSelectRegion(SynapseNetwork.Mainnet);const best = results[0]; // fastest healthy regionconst client = SynapseClient.fromEndpoint({ ...best.endpoint, apiKey: '...' });
Probe all regions for a given network and return them sorted by latency. The first element is the fastest healthy region.