messari.blockexplorers.optimisticetherscan package
Submodules
messari.blockexplorers.optimisticetherscan.optimisticetherscan module
This module is meant to contain the OptimisticEtherscan class
- class messari.blockexplorers.optimisticetherscan.optimisticetherscan.OptimisticEtherscan(api_key: Optional[str] = None)
Bases:
messari.blockexplorers.scanner.Scanner
This class is a wrapper around the OptimisticEtherscan API
Methods
get_account_blocks_mined
(accounts_in[, ...])Returns the list of blocks mined by an address
get_account_internal_transactions
(accounts_in)Returns the list of internal transactions performed by an address
get_account_l1_deposits
(accounts_in[, ascending])get_account_native_balance
(accounts_in)Returns the native token balance of a given address
get_account_nft_transfers
(accounts_in[, ...])Returns the list of ERC-721 ( NFT ) tokens transferred by an address, with optional filtering by token contract
get_account_normal_transactions
(accounts_in)Returns the list of transactions performed by an address, with optional pagination
get_account_token_transfers
(accounts_in[, ...])Returns the list of ERC-20 tokens transferred by an address, with optional filtering by token contract
get_block_by_timestamp
(times_in[, before])Override: return None
get_block_countdown
(blocks_in)Override: return None
get_block_range_internal_transactions
(...[, ...])Returns the list of internal transactions performed within a block range Parameters ---------- start_block: int block to start search end_block: int block to end search page: int Page number starting at 0. Increment value to paginate through results offset: int Offset starting at 0. Increment value to offset paginated results ascending: bool return results ascending or descending (default True).
get_block_reward
(blocks_in)Override: return None
get_contract_abi
(contracts_in)Returns the Contract Application Binary Interface (ABI) of a verified smart contract
get_contract_execution_status
(transactions_in)Override: return None
get_contract_source_code
(contracts_in)Returns the Solidity source code of a verified smart contract
get_est_confirmation
(gas_price)Override: return None
get_eth_account_transaction_count
(accounts_in)Override: return None
get_eth_block
(blocks_in)Override: return None
Override: return None
get_eth_block_transaction_count
(blocks_in)Override: return None
Override: return None
get_eth_transaction_by_block_index
(block, index)Override: return None
get_eth_transaction_by_hash
(transactions_in)Override: return None
get_eth_transaction_receipt
(transactions_in)Override: return None
get_eth_uncle
(block, index)Override: return None
Override: return None
get_logs
(address, from_block[, to_block, ...])Override: return None
get_response
(endpoint_url[, params, headers])Gets response from endpoint and checks for HTTP errors when requesting data.
get_token_account_balance
(tokens_in, accounts_in)Returns the current balance of an ERC-20 token of an address
get_token_total_supply
(tokens_in)Returns the current amount of an ERC-20 token in circulation
Returns the current amount of ETH (Wei) in circulation on optimism
get_transaction_execution_status
(transactions_in)Override: return None
get_transaction_internal_transactions
(...)Returns the list of internal transactions performed within a transaction Parameters ---------- transactions_in: str, List single transaction in or list of transactions in
set_api_dict
(api_dict)Sets a new dictionary to be used as an API key pair
set_taxonomy_dict
(taxonomy_dict)Sets a new dictionary to be used for taxonomy translations
translate
(input_slugs)Wrapper around messari.utils.validate_input, validate input & check if it's supported by DeFi Llama
get_account_l2_withdrawals
- get_account_l1_deposits(accounts_in: Union[str, List], ascending: bool = True) pandas.core.frame.DataFrame
- get_account_l2_withdrawals(accounts_in: Union[str, List], ascending: bool = True) pandas.core.frame.DataFrame
- get_block_by_timestamp(times_in: Union[int, List], before: bool = True) pandas.core.frame.DataFrame
Override: return None
- get_block_countdown(blocks_in: Union[int, List]) pandas.core.frame.DataFrame
Override: return None
- get_block_reward(blocks_in: Union[int, List]) pandas.core.frame.DataFrame
Override: return None
- get_contract_execution_status(transactions_in: Union[str, List]) pandas.core.frame.DataFrame
Override: return None
- get_est_confirmation(gas_price: int)
Override: return None
- get_eth_account_transaction_count(accounts_in: Union[str, List])
Override: return None
- get_eth_block(blocks_in: Union[int, List])
Override: return None
- get_eth_block_number()
Override: return None
- get_eth_block_transaction_count(blocks_in: Union[int, List])
Override: return None
- get_eth_gas_price()
Override: return None
- get_eth_transaction_by_block_index(block: int, index: int)
Override: return None
- get_eth_transaction_by_hash(transactions_in: Union[str, List])
Override: return None
- get_eth_transaction_receipt(transactions_in: Union[str, List])
Override: return None
- get_eth_uncle(block: int, index: int)
Override: return None
- get_gas_oracle()
Override: return None
- get_logs(address: str, from_block: Union[int, str], to_block: Union[int, str] = 'latest', topic0: Optional[str] = None, topic1: Optional[str] = None, topic2: Optional[str] = None, topic3: Optional[str] = None, topic0_1_opr: Optional[str] = None, topic1_2_opr: Optional[str] = None, topic2_3_opr: Optional[str] = None, topic0_2_opr: Optional[str] = None, topic0_3_opr: Optional[str] = None, topic1_3_opr: Optional[str] = None) pandas.core.frame.DataFrame
Override: return None
- get_total_eth_supply() int
Returns the current amount of ETH (Wei) in circulation on optimism
- get_transaction_execution_status(transactions_in: Union[str, List]) pandas.core.frame.DataFrame
Override: return None
Module contents
Module to handle initialization, imports, for OptimsticEtherscan class