langchain_community.document_loaders.etherscan.EtherscanLoader¶

class langchain_community.document_loaders.etherscan.EtherscanLoader(account_address: str, api_key: str = 'docs-demo', filter: str = 'normal_transaction', page: int = 1, offset: int = 10, start_block: int = 0, end_block: int = 99999999, sort: str = 'desc')[source]¶

Load transactions from Ethereum mainnet.

The Loader use Etherscan API to interact with Ethereum mainnet.

ETHERSCAN_API_KEY environment variable must be set use this loader.

Methods

__init__(account_address[, api_key, filter, ...])

getERC1155Tx()

getERC20Tx()

getERC721Tx()

getEthBalance()

getInternalTx()

getNormTx()

lazy_load()

Lazy load Documents from table.

load()

Load transactions from spcifc account by Etherscan.

load_and_split([text_splitter])

Load Documents and split into chunks.

__init__(account_address: str, api_key: str = 'docs-demo', filter: str = 'normal_transaction', page: int = 1, offset: int = 10, start_block: int = 0, end_block: int = 99999999, sort: str = 'desc')[source]¶
getERC1155Tx() List[Document][source]¶
getERC20Tx() List[Document][source]¶
getERC721Tx() List[Document][source]¶
getEthBalance() List[Document][source]¶
getInternalTx() List[Document][source]¶
getNormTx() List[Document][source]¶
lazy_load() Iterator[Document][source]¶

Lazy load Documents from table.

load() List[Document][source]¶

Load transactions from spcifc account by Etherscan.

load_and_split(text_splitter: Optional[TextSplitter] = None) List[Document]¶

Load Documents and split into chunks. Chunks are returned as Documents.

Parameters

text_splitter – TextSplitter instance to use for splitting documents. Defaults to RecursiveCharacterTextSplitter.

Returns

List of Documents.

Examples using EtherscanLoader¶