# Custom ABI

The Custom ABI feature is useful for debugging and testing newly deployed smart contracts. This feature can be used with verified or unverified contracts.

Once a custom ABI is added, the user can test methods using the `Write Custom` feature.

## Add Custom ABI

**1)** [Login to My Account](/using-quaiscan/my-account.md) in Quaiscan to get started. Once logged in:

1. Go to **Custom ABI** in the My Account menu.
2. Press the **Add Custom ABI** button.

<figure><img src="/files/361NIov75JtsAI2TAH3x" alt="Go to Custom ABI in the My Account menu"><figcaption></figcaption></figure>

**2)** **Fill in the fields**.

1. **Smart Contract Address**. Enter the correct `0x` address of the deployed contract.
2. **Project Name**. Create a name for your own reference.
3. **Custom ABI**: Copy and paste in the ABI for the contract from your development environment (truffle, hardhat, remix etc) or if the contract is verified you can copy from Blockscout.
4. Press **Create custom ABI**.

<figure><img src="/files/iH49CmPL2n4zloRyH2nh" alt="Fill in custom ABI fields for contract, name and ABI"><figcaption></figcaption></figure>

**3) Custom ABI added** to the home screen. You can edit or remove current custom ABIs or add additional custom ABIs from here.

<figure><img src="/files/S1Kp9MUlAoZVP0bOqJhn" alt="Custom ABI homescreen shows current custom ABIs. Delete and edit from here."><figcaption><p>Edit or delete a custom ABI using the icons</p></figcaption></figure>

## Interact with a Custom ABI

You will need to be logged into My Account to interact with your custom ABIs. Once you added, you can visit the contract to interact with the custom ABI.

1. Go to the contract page.
2. You will see a Write custom button.
3. Connect your wallet to interact with the contract.
4. Write to the available methods.

<figure><img src="/files/8mi1V7H6NrxTXw2ce62T" alt="Login to My Account and connect your wallet to interact with your custom ABIs"><figcaption></figcaption></figure>


---

# 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.quaiscan.io/using-quaiscan/my-account/custom-abi.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.
