Skip to main content
Version: 5.19.5

Namespace: transaction

Functions​

transformCallsToMulticallArrays​

â–¸ transformCallsToMulticallArrays(calls): Object

Transforms a list of Calls, each with their own calldata, into two arrays: one with the entrypoints, and one with the concatenated calldata.

Parameters​

NameType
callsCall[]

Returns​

Object

NameType
callArrayParsedStruct[]
calldataCalldata

Defined in​

src/utils/transaction.ts:12


fromCallsToExecuteCalldata​

â–¸ fromCallsToExecuteCalldata(calls): Calldata

Transforms a list of calls in the full flattened calldata expected by the execute protocol.

Parameters​

NameType
callsCall[]

Returns​

Calldata

Defined in​

src/utils/transaction.ts:37


fromCallsToExecuteCalldataWithNonce​

â–¸ fromCallsToExecuteCalldataWithNonce(calls, nonce): Calldata

Parameters​

NameType
callsCall[]
nonceBigNumberish

Returns​

Calldata

Defined in​

src/utils/transaction.ts:43


transformCallsToMulticallArrays_cairo1​

â–¸ transformCallsToMulticallArrays_cairo1(calls): CallStruct[]

Format Data inside Calls

Parameters​

NameTypeDescription
callsCall[]Call[]

Returns​

CallStruct[]

CallStruct

Defined in​

src/utils/transaction.ts:53


fromCallsToExecuteCalldata_cairo1​

â–¸ fromCallsToExecuteCalldata_cairo1(calls): Calldata

Transforms a list of calls in the full flattened calldata expected by the execute protocol.

Parameters​

NameType
callsCall[]

Returns​

Calldata

Calldata

Defined in​

src/utils/transaction.ts:68


getExecuteCalldata​

â–¸ getExecuteCalldata(calls, cairoVersion?): Calldata

Parameters​

NameTypeDefault valueDescription
callsCall[]undefinedCall array
cairoVersionCairoVersion'0'Defaults to 0

Returns​

Calldata

string[] of calldata

Defined in​

src/utils/transaction.ts:85