DEX Banner

SpiritSwap

SpiritSwap is a decentralized exchange (DEX) on Fantom. SpiritSwap'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 SpiritSwap 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 SpiritSwap:

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 -
Key Endpoints
- Get SpiritSwap pools
- Get SpiritSwap network exchange tokens
- Get SpiritSwap transactions for exchange
- Get SpiritSwap 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 SpiritSwap analytics dashboard:

Analytics screenshot
Marker Endpoint Data
1 /250/address/:address/transactions_v2 Timeseries TVL based on decoded Deposit and Withdraw events
2 /250/xy=k/spiritswap/pools/address/:address 24h volume as a timeseries chart
3 /250/xy=k/spiritswap/tokens Top 50 tokens by price, volume, liquidity
4 /250/xy=k/spiritswap/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 SpiritSwap and the Covalent API:

Last modified: November 30, 2022: Add Gather docs (#256) (33a77df)