ChainlinkLatestBundleData
Documentation for eth_defi.chainlink.bundle_aggregator.ChainlinkLatestBundleData Python class.
- class ChainlinkLatestBundleData
Bases:
objectCurrent state returned by a Chainlink bundle aggregator proxy.
Attributes summary
Bundle proxy contract.
Feed-specific opaque bundle payload.
Chainlink report timestamp as Unix seconds.
Decimal metadata for feed fields.
Human-readable feed description.
Underlying DataFeedsCache contract emitting report events.
Return the report timestamp as a naive UTC datetime.
Methods summary
__init__(proxy, bundle, updated_at, ...)decode_decimal(index, *[, signed])Decode a numeric field using the proxy-provided decimal scale.
- proxy: web3.contract.contract.Contract
Bundle proxy contract.
- bundle: bytes
Feed-specific opaque bundle payload.
- updated_at: int
Chainlink report timestamp as Unix seconds.
- description: str
Human-readable feed description.
- aggregator_address: eth_typing.evm.HexAddress
Underlying DataFeedsCache contract emitting report events.
- property update_time: datetime.datetime
Return the report timestamp as a naive UTC datetime.
- decode_decimal(index, *, signed=False)
Decode a numeric field using the proxy-provided decimal scale.
- Parameters
- Returns
Human-readable decimal value.
- Raises
IndexError – If the proxy has no decimal metadata for
index.- Return type