fetch_chainlink_latest_bundle
Documentation for eth_defi.chainlink.bundle_aggregator.fetch_chainlink_latest_bundle function.
- fetch_chainlink_latest_bundle(web3, proxy_address, block_identifier='latest')
Fetch a Chainlink bundle from its proxy at a specific block.
- Parameters
web3 (web3.main.Web3) – Web3 connection for the proxy’s chain.
proxy_address (Union[eth_typing.evm.HexAddress, str]) – Chainlink bundle aggregator proxy address.
block_identifier (Union[Literal['latest', 'earliest', 'pending', 'safe', 'finalized'], eth_typing.evm.BlockNumber, eth_typing.evm.Hash32, eth_typing.encoding.HexStr, int]) – Current or historical block identifier.
- Returns
Bundle, report timestamp, decimal metadata, description and cache address.
- Raises
ValueError – If the proxy returns an empty or untimestamped bundle.
- Return type
eth_defi.chainlink.bundle_aggregator.ChainlinkLatestBundleData