Skip to main content

account_fetch_policy_for_source

Function account_fetch_policy_for_source 

Source
pub fn account_fetch_policy_for_source(
    source_chain_id: ChainId,
    network_profile: NetworkConfigs,
) -> AccountFetchPolicy
Expand description

Returns the account-loading policy required by a fork source.

A recognized source chain ID is authoritative. The endpoint’s execution profile is only a source hint for custom chain IDs, where the chain ID cannot identify the RPC semantics, and for local development chain IDs, which nodes of any family use, such as Anvil and Tempo dev nodes. A dev node of another family that reports no Anvil node info therefore needs an execution profile that matches it: selecting Tempo for it requires eth_getAccountInfo.