web3research.common =================== .. py:module:: web3research.common Classes ------- .. toctree:: :hidden: /references/web3research/common/ChainStyle /references/web3research/common/Address /references/web3research/common/Hash .. autoapisummary:: web3research.common.ChainStyle web3research.common.Address web3research.common.Hash Functions --------- .. autoapisummary:: web3research.common.get_ethereum_web3_endpoint web3research.common.get_tron_web3_endpoint Package Contents ---------------- .. py:function:: get_ethereum_web3_endpoint(endpoint: str = ETH_WEB3_ENDPOINT) -> Union[web3.Web3, web3.AsyncWeb3] Get Ethereum web3 endpoint, supports both HTTP and WS protocols. Other ethereum-based chains can also use this function. By default, it uses the endpoint from the environment variable W3R_WEB3_ENDPOINT. If the environment variable is not set, it uses our default endpoint, which is "https://eth.web3resear.ch/v1/mainnet". Args: endpoint (str): The endpoint URL. Returns: Web3: The web3 instance. .. py:function:: get_tron_web3_endpoint(endpoint: str = ETH_WEB3_ENDPOINT) -> web3.Web3