Skip to main content

Calls

Calls

Functions in the Aztec Network can call other functions. There are several types of call:

  • Synchronous calls: when a private function calls another private function; or when a public function calls another public function.
  • Enqueued calls: when a private function calls a public function.
  • Batched calls: when multiple calls to the same function are enqueued and processed as a single call on a concatenation of the arguments.

The protocol also supports alternative call methods, such as static, delegate, and unconstrained calls.

In addition to function calls, the protocol allows for communication via message-passing back-and-forth between L1 and L2, as well as from public to private functions.