Skip to content

Solidity API

PropsMulticall

A contract that allows batching multiple calls in a single transaction. This contract extends PropsERC2771 to support meta-transactions.

MulticallResult

solidity
event MulticallResult(bytes[] results)

Emitted when a multicall is executed successfully.

Parameters

NameTypeDescription
resultsbytes[]An array of bytes containing the results of each call in the batch.

multicall

solidity
function multicall(bytes[] data) external virtual returns (bytes[] results)

Executes a batch of function calls on this contract.

This function allows calling multiple functions in a single transaction, potentially reducing gas costs and improving efficiency. It supports meta-transactions through ERC2771 context handling.

Parameters

NameTypeDescription
databytes[]An array of encoded function calls to be executed.

Return Values

NameTypeDescription
resultsbytes[]An array of bytes containing the results of each call.