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

# ICallProxy

> ICallProxy interface details - functions.

## Functions

### submissionChainIdFrom

```solidity theme={null}
function submissionChainIdFrom() external returns (uint256)
```

Chain from which the current submission is received.

### submissionNativeSender

```solidity theme={null}
function submissionNativeSender() external returns (bytes)
```

Native sender of the current submission.

### call

```solidity theme={null}
function call(
    address _reserveAddress,
    address _receiver,
    bytes _data,
    uint256 _flags,
    bytes _nativeSender,
    uint256 _chainIdFrom
) external returns (bool)
```

Used for calls where native asset transfer is involved.

**Parameters:**

| Name              | Type      | Description                           |
| ----------------- | --------- | ------------------------------------- |
| `_reserveAddress` | `address` | Receiver if call to `_receiver` fails |
| `_receiver`       | `address` | Contract to be called                 |
| `_data`           | `bytes`   | Call data                             |
| `_flags`          | `uint256` | Behavior flags (see Flags library)    |
| `_nativeSender`   | `bytes`   | Native sender                         |
| `_chainIdFrom`    | `uint256` | Chain ID of the originating chain     |

### callERC20

```solidity theme={null}
function callERC20(
    address _token,
    address _reserveAddress,
    address _receiver,
    bytes _data,
    uint256 _flags,
    bytes _nativeSender,
    uint256 _chainIdFrom
) external returns (bool)
```

Used for calls where ERC20 transfer is involved.

**Parameters:**

| Name              | Type      | Description                           |
| ----------------- | --------- | ------------------------------------- |
| `_token`          | `address` | Asset address                         |
| `_reserveAddress` | `address` | Receiver if call to `_receiver` fails |
| `_receiver`       | `address` | Contract to be called                 |
| `_data`           | `bytes`   | Call data                             |
| `_flags`          | `uint256` | Behavior flags (see Flags library)    |
| `_nativeSender`   | `bytes`   | Native sender                         |
| `_chainIdFrom`    | `uint256` | Chain ID of the originating chain     |
