# Importing Contracts

To start interacting with the already deployed smart contracts, you can import them using the Dev3 Dashboard, which is automatically going to expose the contract to the SDK.\
\
Dev3 will try to recognize and match the imported smart contract functions with some of the interfaces and smart contracts stored in the publicly available Dev3 contracts base ([see here](https://github.com/0xDev3/solidity-commons)), and if there's no match found for the implementation, Dev3 will try to decompile the data at the given contract address and use the smart detection to guess the function names and parameters.\
\
To import the contract, go to your workspace on the Dev3 Dashboard and click on "Import Deployed".

<figure><img src="/files/WEgsQHfShI4lTdzuQxHw" alt=""><figcaption><p>Import Action</p></figcaption></figure>

Then provide the address of the contract and give it a human friendly alias.

{% hint style="info" %}
Alias is a name under which the contract is exposed to the SDK.
{% endhint %}

<figure><img src="/files/utK0mNRJZFrOcgigDpFL" alt=""><figcaption><p>Providing the data for smart contract import</p></figcaption></figure>

When you're done, hit import and Dev3 will take care of the rest. Once the contract is imported, you will be able to find it in the "My Contracts" section as shown below.<br>

<figure><img src="/files/2nEB3uWlxKr3cNt9C2y6" alt=""><figcaption><p>Imported Chainlink BTC Price Feed</p></figcaption></figure>

You can play with the contract directly on the dashboard, but you can also use the contract alias to communicate with the smart contract via the SDK.\
\
For example, to call a function on the imported Chainlink price feed via the SDK, we can use the following code snippet (live example):

{% embed url="<https://codesandbox.io/embed/keen-water-uzilg9?fontsize=14&hidenavigation=1&module=/src/index.js&theme=dark&view=editor>" %}

And here's the frontend part where you can actually test the code and fetch the BTC price from one of the Chainlink Oracles deployed on Mumbai network, which we've imported on the Dev3 Dashboard:&#x20;

{% embed url="<https://codesandbox.io/s/keen-water-uzilg9?file=/src/index.js>" %}


---

# 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.dev3.sh/welcome-to-dev3/sdk/importing-contracts.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.
