LogoLogo
SwapKit's websiteRegister for an API Key
  • 🏡Getting started
    • SwapKit's trade offerings
  • 💰Monetization
  • 🤝Partnership
  • SwapKit API
    • Introduction
    • /providers - Request supported chains by a swap provider
    • /tokens - Request supported tokens by a swap provider
    • /quote - Request a trade quote
    • /quote - Understanding the response
    • /chainflip/broker/channel - Opening a Chainflip deposit channel
    • /track - Request the status of a swap
    • /screen - Check AML compliance
    • /price - Lookup token prices
Powered by GitBook
On this page
  • Response structure
  • Supported providers
  • Chain IDs and corresponding names
  1. SwapKit API

/providers - Request supported chains by a swap provider

The /providers endpoint allows users to retrieve a comprehensive list of all available swap providers integrated by SwapKit and their supported chains and metadata. This endpoint does not require any parameters and always returns the full list of providers and their information.

Method: GET URL: https://api.swapkit.dev/providers

Request example:

curl -X 'GET' \
  'https://api.swapkit.dev/providers' \
  -H 'accept: application/json' \
  -H "x-api-key: YOUR_VARIABLE_HERE" 

Response structure

The response contains an array of provider objects. Each object includes the following fields:

  • name and provider: The name of the provider, used by SwapKit to reference it.

  • keywords: Relevant keywords for the provider.

  • count: Number of supported tokens.

  • logoURI: URL to the provider’s logo.

  • url: URL to the provider’s token list.

  • supportedChainIds: List of supported chain IDs for the provider.

Sample provider information

[
  {
    "name": "CHAINFLIP_STREAMING",
    "provider": "CHAINFLIP_STREAMING",
    "keywords": [],
    "count": 10,
    "logoURI": "https://storage.googleapis.com/token-list-swapkit/images/eth.flip-0x826180541412d574cf1336d22c0c0a287822678a.png",
    "url": "https://storage.googleapis.com/token-list-swapkit/chainflip_streaming.json",
    "supportedActions": [
      "swap"
    ],
    "supportedChainIds": [
      "42161",
      "bitcoin",
      "1",
      "polkadot",
      "solana"
    ]
  },
  ...
]

Supported providers

Below is the list of all providers available in the /providers response:

[
  "THORCHAIN",
  "THORCHAIN_STREAMING",
  "CHAINFLIP",
  "CHAINFLIP_STREAMING",
  "MAYACHAIN",
  "MAYACHAIN_STREAMING",
  "ONEINCH",
  "PANCAKESWAP",
  "PANGOLIN_V1",
  "SUSHISWAP_V2",
  "TRADERJOE_V2",
  "UNISWAP_V2",
  "UNISWAP_V3",
  "CAVIAR_V1",
  "JUPITER",
  "CAMELOT_V3"
]

The Streaming providers split the transaction over time. Transactions take longer to execute but have better pricing, so they offer an overall better trade for larger swaps where slippage may be an issue.


Chain IDs and corresponding names

The supportedChainIds field includes a list of chain IDs that each provider supports. The Chain IDs are standard among the crypto space so you may see the chains referenced by them elsewhere too. Below is a table with the chain IDs integrated by SwapKit and their corresponding regular names:

Chain ID
Chain Name

1

Ethereum Mainnet

42161

Arbitrum One

43114

Avalanche C-Chain

8453

Base

56

Binance Smart Chain (BSC)

solana

Solana

bitcoin

Bitcoin

bitcoincash

Bitcoin Cash

litecoin

Litecoin

cosmoshub-4

Cosmos Hub

dash

Dash

dogecoin

Dogecoin

kaiyo-1

Kujira

mayachain-mainnet-v1

MayaChain

polkadot

Polkadot

radix-mainnet

Radix

thorchain-1

THORChain

PreviousIntroductionNext/tokens - Request supported tokens by a swap provider

Last updated 2 months ago