Batch Actions

In addition to batch create and batch mint, any set of Hats.sol functions can be batched together into a single transaction.

This is made possible by Multicallable โ€” from which Hats.sol inherits โ€” which adds a non-payable multicall function to the contract. This enables EOAs to make multiple calls to the contract atomically, unlocking a number of useful batch operations that were previously only available to smart contracts.

For example,

Last updated