DEX Banner

StellaSwap

StellaSwap is a decentralized exchange (DEX) on Moonbeam Mainnet. StellaSwap's design is based on the Uniswap constant-product automated market maker (AMM). In an AMM, liquidity providers simply deposit a pair of tokens and an algorithm automatically makes markets for the token pair. Traders can easily swap between tokens in the AMM and get guaranteed rates for the swaps. Each swap on StellaSwap incurs a fee, which gets distributed to liquidity providers as their payment for work.

DEX app screenshot

The Covalent API is RESTful and offers the following out-of-the-box for StellaSwap:

Covalent API
Response formats JSON and CSV
Real time response 2 blocks
Batch response 30 minutes
Base URL https://api.covalenthq.com/v1
Networks & chain_id Moonbeam - 1284
Key Endpoints
- Get StellaSwap pools
- Get StellaSwap network exchange tokens
- Get StellaSwap transactions for exchange
- Get StellaSwap ecosystem chart data

Try the key endpoints directly in your browser from the API Reference.

Build Analytics Dashboards

Here is a breakdown of the the specific API endpoints that can be used to build the StellaSwap analytics dashboard:

Analytics screenshot
Marker Endpoint Data
1 /1284/address/:address/transactions_v2 Timeseries TVL based on decoded Deposit and Withdraw events
2 /1284/xy=k/stellaswap/pools/address/:address 24h volume as a timeseries chart
3 /1284/xy=k/stellaswap/tokens Top 50 tokens by price, volume, liquidity
4 /1284/xy=k/stellaswap/pools Top 50 pools by price, volume, liquidity

Code Template

Dex dashboard screenshot

Template repo: https://github.com/covalenthq/dex-dashboard-template

This code template is a showcase of the XY=K suite of Covalent API endpoints capable of powering DEX dashboards. The code is open source and forkable for anyone to customize it.

Resources

Here are some additional resources to help you get started with StellaSwap and the Covalent API:

Last modified: August 8, 2022: Fix link to tools (eaada5a)