Skip to content
Alchemy Logo

encodeCallsMAv1

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

Defined in: packages/smart-accounts/src/ma-v1/accounts/calldataCodec.ts:18

Encodes an array of calls into ModularAccountV1 calldata for execute or executeBatch. Used internally by the ModularAccountV1 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?