Multicall

import "@thirdweb-dev/contracts/extension/Multicall.sol";

The Multicall smart contract is an extension usable with any base smart contract. It provides a function multicall to batch together multiple calls in a single external call.


GitHub
View on GitHub

Usage

This is an example smart contract demonstrating how to inherit from this extension and override the functions to add (optional) custom functionality.

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@thirdweb-dev/contracts/extension/Multicall.sol";
contract MyContract is Multicall { ... }

Base Contracts Implementing This Extension

Full API reference