Skip to main content

planned_call_count

Function planned_call_count 

Source
pub fn planned_call_count(
    requests: &[(Address, U256)],
    config: &BulkCallConfig,
) -> usize
Expand description

Number of eth_calls a request set will be split into under config.

Useful for CU budgeting on metered providers: the bulk path costs planned_call_count(..) × cost(eth_call) (26 CU each on Alchemy) versus requests.len() × cost(eth_getStorageAt) (20 CU each) for point reads.