ArchiveNodeRequired

Documentation for eth_defi.provider.anvil.ArchiveNodeRequired exception.

exception ArchiveNodeRequired

Bases: Exception

RPC endpoint does not provide archive node access.

This is raised when a fork test requires historical block access but the RPC endpoint only provides recent blocks.

__init__(message, rpc_url=None, requested_block=None, available_block=None, response_headers=None)
Parameters
  • message (str) –

  • rpc_url (str | None) –

  • requested_block (int | None) –

  • available_block (int | None) –

  • response_headers (dict | None) –

__new__(**kwargs)
add_note()

Exception.add_note(note) – add a note to the exception

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.