Skip to content
Alchemy Logo

encodeCallsMAv2

function encodeCallsMAv2(calls): `0x${string}`;

Defined in: packages/smart-accounts/src/ma-v2/accounts/calldataCodec.ts:20

Encodes an array of calls into ModularAccountV2 calldata for execute or executeBatch. Used internally by the ModularAccountV2 SmartAccount implementation. Typically not needed directly unless you have an advanced use case.

ParameterTypeDescription

calls

readonly Call[]

The calls to encode.

`0x${string}`

The encoded calldata.

Was this page helpful?