W3dr «PRO»

Smart routing that detects requests asking for old blocks (archive data) and routes them specifically to archive-capable providers (like Alchemy Archive add-on), while routing recent data to cheaper/free nodes.

// w3dr.ts

// Return the first one to resolve return Promise.any(promises); Smart routing that detects requests asking for old

export class W3DR private providers: RPCProvider[] = []; private options: W3DROptions; private currentIndex: number = 0; private options: W3DROptions

const response = await fetch(url, method: 'POST', headers: 'Content-Type': 'application/json' , body: JSON.stringify(payload), signal: controller.signal ); private currentIndex: number = 0