# EthAnchor API

The **EthAnchor API** is a REST interface for interacting with EthAnchor, providing interfaces for transaction fabrication and static data queries. It allows interfaces, building transactions and verifying cross-chain state to be mostly abstracted regardless of platform. Through this, the EthAnchor API guarantees a minimum level of operation safety, including correct ordering of contract calls and state integrity.

## Endpoints

The EthAnchor API is available at both the Ethereum mainnet and the Ropsten testnet.

|         | Network          | Chain ID | URL                                           |
| ------- | ---------------- | -------- | --------------------------------------------- |
| Mainnet | Ethereum Mainnet | 1        | <https://eth-api.anchorprotocol.com/>         |
| Testnet | Ropsten          | 3        | <https://ropsten.eth-api.anchorprotocol.com/> |

## Usage

Below are sections that contains the API documentation for using the EthAnchor API.

| Operation Type                                                                                                                      | Description                                                         |
| ----------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| [Getting Market Information](https://docs.anchorprotocol.com/anchor-2/developers-ethereum/ethanchor-api/getting-market-information) | Endpoint for retrieving data regarding a specific stablecoin market |
| [Depositing Stablecoins](https://docs.anchorprotocol.com/anchor-2/developers-ethereum/ethanchor-api/depositing-stablecoins)         | Endpoints for depositing wrapped Terra stablecoins to Anchor        |
| [Redeeming Stablecoins](https://docs.anchorprotocol.com/anchor-2/developers-ethereum/ethanchor-api/redeeming-stablecoins)           | Endpoints for redeeming wrapped Terra stablecoins from Anchor       |

Fabricated transactions are unsigned Ethereum Tx payloads that include the user's desired EthAnchor operation. Users can then sign the Tx payload and broadcast it to the relevant Ethereum network to conduct the operation.


---

# 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.anchorprotocol.com/anchor-2/developers-ethereum/ethanchor-api.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.
