# Faucet

**Deployment Address**

Mainnet: [<mark style="color:purple;">0xa62Bf9b53044885CddFcbC4cA52f51f8ae39eCFE</mark>](https://explorer.kinto.xyz/address/0xa62Bf9b53044885CddFcbC4cA52f51f8ae39eCFE)

Code: [<mark style="color:purple;">Faucet.sol</mark>](https://github.com/KintoXYZ/kinto-core/blob/main/src/Faucet.sol)

***

## Basics

* Allows every Kinto wallet to receive a one-time payment of ETH to pay for gas fees.

***

## State functions

<pre><code>claimKintoETH() external override

<strong>claimKintoETH(IFaucet.SignatureData calldata _signatureData) external onlyOwner
</strong>
withdrawAll() external override onlyOwner

startFaucet() payable external override onlyOwner
</code></pre>

1. **claimKintoETH**

Allows users to claim a predefined amount of ETH from the faucet.

```solidity
function claimKintoETH() external override;
```

No parameters.

2. **claimKintoETH (via signature)**

Allows the owner to claim ETH on behalf of a user using a signature.

```solidity
function claimOnBehalf(IFaucet.SignatureData calldata _signatureData) external onlyOwner;
```

| Parameter        | Type                    | Explanation                  |
| ---------------- | ----------------------- | ---------------------------- |
| `_signatureData` | `IFaucet.SignatureData` | Signature data for claiming. |

3. **withdrawAll**

Withdraws all ETH from the faucet and deactivates it.

```solidity
function withdrawAll() external override onlyOwner;
```

No parameters.

4. **startFaucet**

Starts the faucet with an initial ETH deposit.

```solidity
function startFaucet() payable external override onlyOwner;
```

No parameters.

***

## Custom Events

1. **Claim**

Emitted when ETH is claimed from the faucet.

```solidity
event Claim(address indexed _to, uint256 _timestamp);
```

| Parameter    | Type      | Explanation                    |
| ------------ | --------- | ------------------------------ |
| `_to`        | `address` | The address receiving the ETH. |
| `_timestamp` | `uint256` | The timestamp of the claim.    |


---

# 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.kinto.xyz/kinto-the-modular-exchange/building-on-kinto/smart-contract-reference/faucet.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.
