> ## Documentation Index
> Fetch the complete documentation index at: https://docs.extractor.live/llms.txt
> Use this file to discover all available pages before exploring further.

# Contract Call

> The Contract Call detector executes calls to a contract function, extracts return values, and evaluates conditions to fire scheduled monitoring alerts.

Execute calls to a contract function (not a transaction), extract results, and check conditions.

## Functionality

* Calls a contract function on a schedule or per block.
* Extracts results and runs optional scripts/conditions.
* Emits alerts based on script output or errors.

## Configuration

<img src="https://mintcdn.com/hacken-38641811/tf4sXPSOl1ndZd5g/assets/DetectorCall-Config.png?fit=max&auto=format&n=tf4sXPSOl1ndZd5g&q=85&s=7c5ef03198486b0c711f611cd7d4b974" alt="DetectorCall Configuration" width="1439" height="1043" data-path="assets/DetectorCall-Config.png" />

* **Function**: Function to execute. It must be a full signature in the [foundry cast](https://getfoundry.sh/cast/reference/cast) format (e.g. `balanceOf(address)(uint256)`).
* **Parameters**: Parameters to pass to the function. Parameters can be separated with spaces or new lines. Tuples must be enclosed in `()`, arrays in `[]`, and strings in `""`. Refer to the cast documentation for syntax.
* **Script**: Script flow to execute on call result.
* **When**: When to execute script: `block` (every block) or `cron` (at cron intervals).
* **Cron**: Cron interval to execute.
* **Description**: Description pattern. Metadata fields from Alert can be used as substitutions and must be enclosed in `{}` (e.g. `{func}: {result}`).
* **Track Error**: Generate alerts on errors (in Contract Call or evaluation script).
* **Always Error**: Alert on every error. If unchecked, only new unique errors will be alerted and duplicates omitted.
* **Severity**: Alert severity level.

<Note>
  Supported networks: Ethereum, Ethereum Sepolia.
</Note>
