fetch_d2_settlements
Documentation for eth_defi.erc_4626.vault_protocol.d2.settlement.fetch_d2_settlements function.
- fetch_d2_settlements(vault, start_block, end_block, use_hypersync=None, chunk_size=50000)
Fetch D2 settlement and phase transition events for a vault.
- Parameters
vault (eth_defi.erc_4626.vault_protocol.d2.vault.D2Vault) – D2 vault adapter.
start_block (int) – Inclusive start block.
end_block (int) – Inclusive end block.
use_hypersync (Optional[bool]) – Whether to use Hypersync.
Noneauto-detects based on environment.chunk_size (int) – JSON-RPC
eth_getLogschunk size used by the fallback reader.
- Returns
Generic settlement rows sorted by block and transaction hash.
- Return type