BaseNamedProvider
Documentation for eth_defi.provider.named.BaseNamedProvider Python class.
- class BaseNamedProvider
Bases:
abc.ABC,web3.providers.base.JSONBaseProviderA base class for getting a JSON-RPC provider name and URL.
Attributes summary
Return the active node URI where call JSON-RPCs go.
ccip_read_max_redirectsReturn the active node URI endpoint.
global_ccip_read_enabledhas_persistent_connectionis_asyncloggerMethods summary
__init__(**kwargs)batch_request_func(w3, middleware_onion)decode_rpc_response(raw_response)encode_batch_rpc_request(requests)encode_rpc_request(method, params)is_connected([show_traceback])make_batch_request(requests)make_request(method, params)request_func(w3, middleware_onion)@param w3 is the web3 instance @param middleware_onion is an iterable of middleware, ordered by first to execute @returns a function that calls all the middleware and eventually self.make_request()
- abstract property endpoint_uri: str
Return the active node URI endpoint.
Warning
Endpoint URIs often contain API keys. They should be never publicly displayed as is.
- property call_endpoint_uri: str
Return the active node URI where call JSON-RPCs go.
Warning
Endpoint URIs often contain API keys. They should be never publicly displayed as is.
- __init__(**kwargs)
- Parameters
kwargs (Any) –
- Return type
None
- request_func(w3, middleware_onion)
@param w3 is the web3 instance @param middleware_onion is an iterable of middleware,
ordered by first to execute
- @returns a function that calls all the middleware and
eventually self.make_request()