Ambient Docs
  • Introduction to Ambient
  • Concepts
    • AMMs
    • Concentrated Liquidity
    • Knockout Liquidity
    • Governance & Policy
    • Surplus Collateral
    • Permissioned Pools
    • Account Abstraction
  • Users
    • Swaps
    • LP Positions
    • Surplus Collateral
    • Dynamic Fees
    • Knockout Positions
    • Initializing Pools
    • Gasless Transactions
    • External Routers
  • Governance & Policy
    • Ops & Treasury Multisigs
    • Policy
    • Upgrading Code
    • Emergency
  • Developers
    • Deployed Contracts
    • Token Transfers
    • Type Conventions
    • DEX Contract Interface
      • userCmd Callpaths
      • Swaps
        • Hot Path Swap Migration
          • Directly Calling CrocSwapDex
          • External Swap Router
      • Flat LP Calls
      • Long Form Orders
      • Knockout LP Calls
      • Pool Initialization
      • Surplus Collateral
      • Router Calls
      • Relayer Calls
    • Query Contracts
      • CrocQuery Contract
      • CrocImpact Contract
    • Logs and Queries
    • Libraries and APIs
      • SDK
      • Indexer API
      • Subgraph
Powered by GitBook
On this page
  1. Developers
  2. Libraries and APIs

Indexer API

PreviousSDKNextSubgraph

Last updated 1 year ago

A convenient API for retrieving open positions, transaction history, price history, pool statistics, and other on-chain information in convenient form is both available for easy and convenient self-hosting, as well as being centrally hosted by the Ambient project.

More information about the available endpoints can be found in the graphcache-go project repo here: A centrally hosted version of the API is available from: Mainnet: https://ambindexer.net/gcgo/

Scroll: https://ambindexer.net/scroll-gcgo

Running the indexer is light weight and can be done on most desktop machines. More instructions for running the indexer locally are in the linked Github repo.

https://github.com/CrocSwap/graphcache-go