Skip to main content

encode_multicall3_aggregate3

Function encode_multicall3_aggregate3 

Source
pub fn encode_multicall3_aggregate3(calls: &[Call]) -> Bytes
Expand description

Encode a Vec<Call> as a multicall3 aggregate3 call (calldata only, caller is responsible for setting to = MULTICALL3_ADDRESS and value).

Per-call Call::value fields are NOT forwarded — multicall3’s aggregate3 has no per-call value parameter. ETH must be routed via the top-level transaction value.

An empty calls slice is valid and produces the calldata for an empty aggregate3 invocation; callers that want to avoid sending an empty multicall should gate on calls.is_empty() themselves.

Pure. No I/O.