EtaSwap docs
  • DEX Aggregator
    • Overview
    • How to swap tokens
    • Fees explanation
    • Release notes
  • Bridge
    • Overview
    • Tokens/chains
    • Fees
  • Smart contracts
    • Smart-contract addresses
    • ABI and interaction
      • Exchange
  • API documentation
    • Rate provider
    • Settings
Powered by GitBook
On this page
  1. API documentation

Settings

PreviousRate provider

Last updated 1 year ago

Swagger documentation is available by the link:

GET network request returns current application network (mainnet or testnet).

curl -X 'GET' \
  'https://api.etaswap.com/v1/settings/network' \
  -H 'accept: application/json'

Response example:

{
  "network": "mainnet"
}

GET tokens request returns list of tokens, supported by EtaSwap (in EVM format).

curl -X 'GET' \
  'https://api.etaswap.com/v1/settings/tokens' \
  -H 'accept: application/json'

Response example:

[
  "0x000000000000000000000000000000000001f385",
  "0x00000000000000000000000000000000000244da",
  "0x00000000000000000000000000000000000331d8",
  "0x000000000000000000000000000000000006f89a",
  "0x0000000000000000000000000000000000083e9e",
  "0x000000000000000000000000000000000008437c",
  "0x0000000000000000000000000000000000098779",
]
https://api.etaswap.com/v1/docs