> For the complete documentation index, see [llms.txt](https://docs.cartesi.io/llms.txt)

---
resources:
  - url: https://github.com/cartesi/rollups-contracts/tree/v2.0.1/src/contracts/portals/EtherPortal.sol
    title: EtherPortal contract
---

The **EtherPortal** allows anyone to perform transfers of
Ether to a dApp while informing the off-chain machine.

## `depositEther()`

```solidity
function depositEther(address appContract, bytes execLayerData) external payable
```

Transfer Ether to a dApp and add an input to
the dApp's input box to signal such operation.

All the value sent through this function is forwarded to the dApp.

#### Parameters

| Name          | Type    | Description                                              |
| ------------- | ------- | -------------------------------------------------------- |
| appContract   | address | The address of the dApp                                  |
| execLayerData | bytes   | Additional data to be interpreted by the execution layer |
