> For the complete documentation index, see [llms.txt](https://validium.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://validium.gitbook.io/docs/components/compiler/specification/instructions/evm/call.md).

# Call

***

All EVM call instructions are handled similarly.

The call type is encoded on the assembly level, so we will describe the common handling workflow, mentioning distinctions if there are any.

For more information, see the [ZKsync Era documentation](https://docs.zksync.io/build/developer-reference/ethereum-differences/evm-instructions).

### CALL <a href="#call" id="call"></a>

Original [EVM](https://www.evm.codes/#f1?fork=shanghai) instruction.

[The LLVM IR generator code](https://github.com/matter-labs/era-compiler-llvm-context/blob/main/src/eravm/evm/call.rs#L530) is common for Yul and EVMLA representations.

The code checks if the call is non-static and the Ether value is non-zero. If so, the call is redirected to the [MsgValueSimulator](https://docs.zksync.io/zk-stack/components/compiler/specification/system-contracts#ether-value-simulator).

* [EraVM instruction: `call` (near call)](https://matter-labs.github.io/eravm-spec/spec.html#NearCallDefinition)
* [EraVM instruction: `far_call`](https://matter-labs.github.io/eravm-spec/spec.html#FarCalls)

### DELEGATECALL <a href="#delegatecall" id="delegatecall"></a>

Original [EVM](https://www.evm.codes/#f4?fork=shanghai) instruction.

[The LLVM IR generator code](https://github.com/matter-labs/era-compiler-llvm-context/blob/main/src/eravm/evm/call.rs#L530) is common for Yul and EVMLA representations.

[EraVM instruction: `far_call`](https://matter-labs.github.io/eravm-spec/spec.html#FarCalls)

### STATICCALL <a href="#staticcall" id="staticcall"></a>

Original [EVM](https://www.evm.codes/#fa?fork=shanghai) instruction.

[The LLVM IR generator code](https://github.com/matter-labs/era-compiler-llvm-context/blob/main/src/eravm/evm/call.rs#L530) is common for Yul and EVMLA representations.

[EraVM instruction: `far_call`](https://matter-labs.github.io/eravm-spec/spec.html#FarCalls)

<br>
