messari.blockexplorers.bscscan package
Submodules
messari.blockexplorers.bscscan.bscscan module
This module is meant to contain the BSCscan class
- class messari.blockexplorers.bscscan.bscscan.BSCscan(api_key: Optional[str] = None)
Bases:
messari.blockexplorers.scanner.Scanner
This class is a wrapper around the BSCscan 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_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])Returns the block number that was mined at a certain timestamp (in unix)
get_block_countdown
(blocks_in)Returns the estimated time remaining, in seconds, until a certain block is mined
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)Returns the block reward and 'Uncle' block rewards
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)Returns the number of transactions performed by an address
get_eth_block
(blocks_in)Returns information about a block by block number
get_eth_block_number
()Returns the number of most recent block
get_eth_block_transaction_count
(blocks_in)Returns the number of transactions in a block
get_eth_gas_price
()Returns the current price per gas in wei
get_eth_transaction_by_block_index
(block, index)Returns information about a transaction by block number and transaction index position
get_eth_transaction_by_hash
(transactions_in)Returns the information about a transaction requested by transaction hash
get_eth_transaction_receipt
(transactions_in)Returns the receipt of a transaction by transaction hash
get_eth_uncle
(block, index)Override: return None
get_gas_oracle
()Returns the current Safe, Proposed and Fast gas prices
Returns the latest price of 1 BNB in BTC & USD
get_logs
(address, from_block[, to_block, ...])This function is a wrapper around the Etherscan API which is a wrapper around the native eth_getLogs.
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_circulating_supply
(tokens_in)Returns BEP-20 Token Circulating Supply
get_token_total_supply
(tokens_in)Returns the current amount of an ERC-20 token in circulation
Returns the current amount of bnb (Wei) in circulation.
get_transaction_execution_status
(transactions_in)Returns the status code of a transaction execution.
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
Returns the top 21 validators for the Binance Smart Chain
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_contract_execution_status(transactions_in: Union[str, List])
Override: return None
- get_est_confirmation(gas_price: int)
Override: return None
- get_eth_uncle(block: int, index: int)
Override: return None
- get_last_bnb_price() pandas.core.frame.DataFrame
Returns the latest price of 1 BNB in BTC & USD
- Returns
- DataFrame
DataFrame with current bnb price
- get_token_circulating_supply(tokens_in: Union[str, List]) pandas.core.frame.DataFrame
Returns BEP-20 Token Circulating Supply
- Parameters
- tokens_in: str, List
single token address in or list of token addresses
- Returns
- DataFrame
DataFrame containing total supply for token(s)
- get_total_bnb_supply() int
Returns the current amount of bnb (Wei) in circulation.
- Returns
- DataFrame
DataFrame with current amount of bnb circulating
- get_validators() pandas.core.frame.DataFrame
Returns the top 21 validators for the Binance Smart Chain
- Returns
- DataFrame
DataFrame with top 21 validators
Module contents
Module to handle initialization, imports, for BSCscan class