> For the complete documentation index, see [llms.txt](https://docs.fly.trade/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fly.trade/developers/deprecated-magpie-contracts/magpieaggregator-diamond-proxy/multicall.md).

# Multicall

The `Multicall` is a facet of a Diamond smart contract that provides a functionality for batching multiple function calls into a single transaction. This enhances efficiency and user experience for complex swaps.

The primary use case of this contract is to improve efficiency and user experience. By allowing multiple calls in one transaction, it reduces the transaction count, saving on gas fees and simplifying interactions for the user.

This is particularly useful in complex dApps where a user might need to perform several actions in a sequence. Instead of executing each action in a separate transaction, they can be batched together using `multicall`.
