Skip to main content
Version: 5.24.3

Namespace: transaction

Functions​

transformCallsToMulticallArrays​

â–¸ transformCallsToMulticallArrays(calls): Object

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

Parameters​

NameType
callsCall[]

Returns​

Object

NameType
callArrayParsedStruct[]
calldataCalldata

Defined in​

src/utils/transaction.ts:18


fromCallsToExecuteCalldata​

â–¸ fromCallsToExecuteCalldata(calls): Calldata

Transforms a list of calls into the Cairo 0 __execute__ calldata.

Parameters​

NameType
callsCall[]

Returns​

Calldata

Defined in​

src/utils/transaction.ts:40


fromCallsToExecuteCalldataWithNonce​

â–¸ fromCallsToExecuteCalldataWithNonce(calls, nonce): Calldata

Transforms a list of calls into the Cairo 0 __execute__ calldata including nonce.

Deprecated

Parameters​

NameType
callsCall[]
nonceBigNumberish

Returns​

Calldata

Defined in​

src/utils/transaction.ts:51


transformCallsToMulticallArrays_cairo1​

â–¸ transformCallsToMulticallArrays_cairo1(calls): CallStruct[]

Format Data inside Calls

Deprecated

Not required for getting execute Calldata

Parameters​

NameType
callsCall[]

Returns​

CallStruct[]

Defined in​

src/utils/transaction.ts:60


fromCallsToExecuteCalldata_cairo1​

â–¸ fromCallsToExecuteCalldata_cairo1(calls): Calldata

Transforms a list of calls into the Cairo 1 __execute__ calldata.

Parameters​

NameType
callsCall[]

Returns​

Calldata

Defined in​

src/utils/transaction.ts:72


getExecuteCalldata​

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

Create __execute__ Calldata from Calls based on Cairo versions

Parameters​

NameTypeDefault value
callsCall[]undefined
cairoVersionCairoVersion'0'

Returns​

Calldata

Defined in​

src/utils/transaction.ts:89