Skip to content
Alchemy Logo

decodeCallsMAv2

function decodeCallsMAv2(data, accountAddress): Call[];

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

Decodes ModularAccountV2 calldata back into an array of calls. Strips the EXECUTE_USER_OP_SELECTOR prefix if present. Used internally by the ModularAccountV2 SmartAccount implementation. Typically not needed directly unless you have an advanced use case.

ParameterTypeDescription

data

`0x${string}`

The calldata to decode.

accountAddress

`0x${string}`

The account address, used as the to for unrecognized selectors.

Call[]

The decoded calls.

Was this page helpful?