# Overview

## Architecture Diagram

Protocolink SDK/API allows developers to quickly build applications and enhance the user experience.

<figure><img src="https://3615010642-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHuiitAfgh7HXRqRn5di2%2Fuploads%2FeXPrHI57F73rZIjATLSa%2Fimage.png?alt=media&#x26;token=14a0df52-6336-4b01-a962-bb46c8d8f624" alt=""><figcaption><p><strong>Logic:</strong> the above illustrates the actions performed during execution, such as approval, swap, supply, borrow, flash loans, and so on.</p></figcaption></figure>

## TypeScript SDK (Recommended)

Our SDK simplifies communication between APIs and DeFi/NFT smart contracts, allowing you to combine them to create diverse use cases within your interface.

{% content-ref url="protocolink-sdk/overview" %}
[overview](https://docs.protocolink.com/protocolink-sdk/overview)
{% endcontent-ref %}

## API

Our RESTful API provides comprehensive information and enables deeper and customized integrations.

{% content-ref url="protocolink-api/overview" %}
[overview](https://docs.protocolink.com/protocolink-api/overview)
{% endcontent-ref %}

## Smart Contract

By directly integrating with our Smart Contract, you can meet more advanced and flexible application requirements.

{% content-ref url="smart-contract/overview" %}
[overview](https://docs.protocolink.com/smart-contract/overview)
{% endcontent-ref %}


---

# 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.protocolink.com/overview.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.
