# Prefer to Avoid Low-Level Calls

Low-level calls, such as `call`, `delegatecall`, and `staticcall`, are powerful but come with increased risk, as they bypass many of Solidity’s built-in safety checks. This can lead to issues such as unchecked return values, reentrancy vulnerabilities, and potential misinterpretation of the contract’s intended logic.

Low-level calls also make error handling more challenging, as they do not revert automatically on failure, do not fail on calls to EOAs, potentially leading to unintended behaviors or funds loss. Instead, favor high-level Solidity functions and interfaces whenever available, as they are safer, easier to audit, and provide clearer, more predictable behavior.


---

# 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.optimumsec.xyz/coding/avoid-low-level-calls.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.
