# Airdrop Utils

Airdrop utils module contains the verify function to check if a Merkle proof combined with an address and amount are part of the Merkle tree root.&#x20;

### <mark style="color:blue;">verify</mark>

**Checks if the sender is allowed to redeem an `amount` from an airdrop using Merkle proofs. It returns the index of his Merkle proof to add to the Bitmap struct.**&#x20;

```rust
public fun verify(
    root: vector<u8>,
    proof: vector<vector<u8>>, 
    amount: u64, 
    sender: address
): u256
```

* **@param root:** The Merkle tree root that keeps track of all the airdrops.
* **@param proof:**  The proof that the sender can redeem the `amount` from the airdrop.
* **@param amount:** The airdrop amount.&#x20;
* **@param sender:** The address of the airdrop user.
* **@return** u256. An index.&#x20;

**Aborts**

* if the leaf or proof are invalid.&#x20;


---

# 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.interestprotocol.com/overview/deprecated/sui-tears/airdrop/airdrop-utils.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.
