This PR changes the request and request_cost methods to receive Source variants which can represent URLs, registered providers, or EVM chain identifiers. This provides a layer of abstraction for more realistic use cases where the developer wants to call an RPC method on a specific EVM network without needing to know which specific RPC provider is being used behind the scenes.
At the moment, the "preferred provider" for a given network is defined as the earliest registered provider with the active flag set to true.
This PR changes the
request
andrequest_cost
methods to receiveSource
variants which can represent URLs, registered providers, or EVM chain identifiers. This provides a layer of abstraction for more realistic use cases where the developer wants to call an RPC method on a specific EVM network without needing to know which specific RPC provider is being used behind the scenes.At the moment, the "preferred provider" for a given network is defined as the earliest registered provider with the
active
flag set totrue
.