web3data.handlers.api¶
This module contains the main API handler class.
-
class
web3data.handlers.api.
APIHandler
(api_key: str, blockchain_id: str, chain: web3data.chains.Chains)[source]¶ Bases:
object
The API handler object for client requests.
-
rpc
(method: str, params: List[str], ident: int = 1)[source]¶ Perform an HTTP POST RPC call on the API.
Consult the docs here for further details on supported commands: https://docs.amberdata.io/reference#rpc-overview
- Parameters
method – The RPC method to call
params – Parameters attached to the RPC call
ident – RPC call identifier
-