# 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`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fly.trade/developers/deprecated-magpie-contracts/magpieaggregator-diamond-proxy/multicall.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
