fetch_euler_vault_metadata

Documentation for eth_defi.erc_4626.vault_protocol.euler.offchain_metadata.fetch_euler_vault_metadata function.

fetch_euler_vault_metadata(web3, vault_address)

Fetch vault metadata from the offchain products.json source.

Uses a two-level cache: an in-process dict and a disk cache populated by fetch_euler_vaults_file_for_chain().

Parameters
  • web3 (web3.main.Web3) – Connected Web3 instance (used to determine chain ID and checksum the address).

  • vault_address (eth_typing.evm.HexAddress) – Vault contract address.

Returns

EulerVaultMetadata for the vault, or None if no metadata is available (unrecognised vault or chain has no products.json).

Return type

Optional[eth_defi.erc_4626.vault_protocol.euler.offchain_metadata.EulerVaultMetadata]