Anchor Protocol
  • Home
  • Security
  • Protocol
    • Overview
    • Bonded Assets (bAssets)
      • Bonded Luna (bLuna)
      • Bonded ETH (bETH)
    • Money Market
      • Deposit Rate Subsidization
    • Loan Liquidation
    • Anchor Token (ANC)
    • Anchor Governance
      • Modify Collateral Attributes
      • Modify Market Parameters
      • Modify Liquidation Parameters
      • Modify ANC Parameters
      • Modify Governance Parameters
      • Modify Borrow Interest
      • Modify ANC Distribution
      • Community Grants
      • Text Proposal
  • User Guide
    • Interchain Transfers
    • WebApp
      • EARN
      • BORROW
      • bASSET [bLUNA]
      • bASSET [bETH]
      • GOVERN
        • ANC - UST LP Staking
        • Anchor Governance Staking
        • Claiming ANC Rewards
        • Creating and voting on proposals
  • EthAnchor
    • EthAnchor
    • EthAnchor Contracts
      • Deployed Contracts
      • Router
      • ConversionPool
      • ExchangeRateFeeder
    • Fees
  • Developers - Earn
    • Anchor Earn SDK
    • Example Usage
    • Appendix
  • xAnchor
    • xAnchor
    • xAnchor Contracts
    • xAnchor Bridge (EVM Chains)
    • xAnchor Terra-side Contracts
      • xAnchor Core
      • xAnchor Wormhole Bridge
      • Address Proxy
  • Developers - Terra
    • Anchor.js
    • AnchorCLI
  • Smart Contracts
    • Deployed Contracts
    • bLuna
      • Hub
      • Reward
      • Rewards Dispatcher
      • Validators Registry
      • Airdrop Registry
      • Tokens: bLuna and stLuna
    • bETH
      • Reward
      • Token
      • Converter
    • Money Market
      • Overseer
      • Market
      • Custody [bLUNA]
      • Custody [bETH]
      • Interest Model
      • Distribution Model
      • Oracle
    • Liquidation
      • Liquidation Contract
      • Liquidation Queue Contract
    • Anchor Token (ANC)
      • Gov
      • Staking
      • Community
      • Collector
      • Distributor
  • Developers - Ethereum [Legacy]
    • EthAnchor
    • EthAnchor Account Contract
    • EthAnchor API
      • Getting Market Information
      • Depositing Stablecoins
      • Redeeming Stablecoins
    • Fees
  • External Resources
    • Anchor WebApp
    • Anchor Protocol GitHub
    • Terra Blockchain
Powered by GitBook
On this page
  • Endpoints
  • Usage

Was this helpful?

  1. Developers - Ethereum [Legacy]

EthAnchor API

PreviousEthAnchor Account ContractNextGetting Market Information

Last updated 4 years ago

Was this helpful?

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

Testnet

Ropsten

3

Usage

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

Operation Type

Description

Endpoint for retrieving data regarding a specific stablecoin market

Endpoints for depositing wrapped Terra stablecoins to Anchor

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.

https://eth-api.anchorprotocol.com/
https://ropsten.eth-api.anchorprotocol.com/
Getting Market Information
Depositing Stablecoins
Redeeming Stablecoins