# Custom contract call

## Setup

To call a contract on-chain as part of a Flow, you use the Airdrop block, in which you select the option "Custom".

<figure><img src="/files/hxuoEbLnTO4vsifVTwn0" alt=""><figcaption><p>Selection of the blockchain on which the contract to call is deployed.</p></figcaption></figure>

To configure the function call, you then:

1. Select the blockchain on which your contract is deployed
2. Paste your contract address in the corresponding field, and click out of the field to trigger a search of the available functions
3. If your contract is verified on Etherscan, the list of available functions should be listed automatically. If not, you will need to copy paste the list of functions in the ABI format.
4. The write functions of the contract, to which one or more wallet address can be passed, will now be available in a dropdown. Select the function to call, e.g. `mintTo(address)`
5. The interface will offer fields for you to specify the values to pass to the various parameters of the contract call. Address fields can be mapped to the addresses which are received by the Airdrop block as part of the Flow
6. Save the configuration when you are done configuring the values to pass to the function parameters.

You can test this on testnets, as illustrated in the screenshot above.


---

# 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.absolutelabs.io/features/flows/channels/airdrop/custom-contract-call.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.
