Transit Finance(English)
  • 🥰Introduction to Transit Finance
  • 🤩Quick Start Guide
    • About Token Swap
    • What is aggregate transaction
    • About slippage
    • About price impact
    • What is cross chain
    • Fee discounts
    • About receiving address
    • About Crosschain Router
    • About liquidity provider
    • About fees
  • 💖FAQ
    • Which wallets does Transit Swap support?
    • How to connect Transit Swap to your wallet?
    • How to use Transit swap on mobile devices?
    • Why are my swaps not credited?
    • How to contact Transit Swap customer service?
    • The number of tokens obtained through aggregate swap is incorrect
    • What fees are there in the swap process?
    • Does aggregate swap support custom receiving addresses
    • Doesn't receive tokens using the exchange receiving address?
    • Why did my swap fail
    • Why can't I find my token in the Transit Swap listing
  • ✅Tutorial
    • Save TRON Gas Costs with One Click!
    • Transit Swap aggregation swap tutorial
    • Transit Swap Cross-Chain Transfer Tutorial
    • How to check your order status through Transit explorer
    • Solutions for Cross-Chain Swap Failure
    • How to set custom slippage
    • How to set custom receiving address
    • How to swap/bridge $DOGE on Transit Swap?
  • 🥰Campaign
    • How to gain Points Airdrop on Mint Blockchain?
    • How to Earn Double Owlto Cross-Chain Points and Exclusive Badge NFT
  • 🤝About channel
  • Reference
    • 🎃API Reference
      • 🛡️TransitSwap Contracts
      • 🍍Transit Swap TRON
      • 👻Transit Swap Aggregation
      • 👾Transit Swap Cross
      • 🥑Transaction Details
    • 🤗Smart Contracts
    • 🔃About channel partners
    • 💡Intergratation
  • 🔔TRANSIT DAO
    • 💲governance
    • ➕Donate
    • ✔️rate
  • 📩Contact us
  • 📜Announcement
    • 📍Announcement
      • Oct 21st. Transit Swap is officially re-launch!
      • Oct 10th. Announcement on the suspension of TransitSwap service.
      • Sept 15th. The Merge is over!
      • Sept 12th. About the Ethereum Merge.
    • 🔃Transit Swap Bi-weekly Report
      • 2023/09/11 - 2023/09/25
      • 2023/08/28 - 2023/09/15
      • 2023/08/14 - 2023/08/28
      • 2023/07/31 - 2023/08/14
      • 2023/07/17 - 2023/07/31
      • 2023/07/03 - 2023/07/17
      • 2023/06/19 - 2023/07/03
      • 2023/06/05 - 2023/06/19
      • 2023/05/22 - 2023/06/05
      • 2023/05/08 - 2023/05/22
      • 2023/04/24 - 2023/05/08
      • 2023/04/10 - 2023/04/24
      • 2023/03/27 - 2023/04/10
      • 2023/03/13 - 2023/03/27
      • 2023/02/27 - 2023/03/13
      • 2023/02/13 - 2023/02/27
      • 2023/01/30 - 2023/02/13
      • 2023/01/16 - 2023/01/30
      • 2023/01/02 - 2023/01/16
      • 2022/12/19 - 2023/01/02
      • 2022/12/05 - 2022/12/19
      • 2022/11/21 - 2022/12/05
      • 2022/11/07 - 2022/11/21
      • 2022/10/24 - 2022/11/07
      • 2022/09/12 - 2022/09/26
      • 2022/08/29 - 2022/09/12
      • 2022/08/15 - 2022/08/29
      • 2022/08/01 - 2022/08/15
      • 2022/07/18 - 2022/07/31
      • 2022/07/04 - 2022/07/17
    • 🆕Weekly Token Listing
      • Token List Update (Sept 22nd, 2023)
      • Token List Update (Aug 25th, 2023)
      • Copy of Token List Update (Aug 25th, 2023)
      • Token List Update (Jul 27th, 2023)
      • Token List Update (Jul 13th, 2023)
      • Token List Update (Jun 29th, 2023)
      • Token List Update (Jun 16th, 2023)
      • Token List Update (Jun 1st, 2023)
      • Token List Update (Apr 28th, 2023)
      • Token List Update (Apr 7th, 2023)
      • Token List Update (Mar 22nd, 2023)
      • Token List Update (Mar 9th, 2023)
      • Token List Update (Feb 24th, 2023)
      • Token List Update (Feb 8th, 2023)
      • Token List Update (Jan 28th, 2023)
      • Token List Update (Jan 12th, 2023)
      • Token List Update (Dec 29th, 2022)
      • Token List Update (Dec 15th, 2022)
      • Token List Update (Dec 2nd, 2022)
      • Token List Update (Nov 18th 2022)
      • Token List Update (Nov 4th, 2022)
      • Token List Update (Sept 28th, 2022)
      • Token List Update (Sept 8th, 2022)
      • Token List Update (Aug 24th, 2022)
      • Token List Update (Aug 10th, 2022)
      • Token List Update (Aug 10th, 2022)
      • Token List Update (July 27th, 2022)
      • Token List Update (July 13th, 2022)
      • Token List Update (June 29th, 2022)
      • Token List Update (June 22nd, 2022)
      • Token List Update (June 16th, 2022)
      • Token List Update (June 8th, 2022)
      • Token List Update (June 2nd, 2022)
      • Token List Update (May 25th, 2022)
      • Token List Update (May 18th, 2022)
      • Token List Update (May 11th, 2022)
      • Token List Update (April 29th, 2022)
      • Token List Update (April 22nd, 2022)
      • Token List Update (April 15th, 2022)
    • ⏺️Public chain list update
      • Aptos(05/01/2023)
      • optimismPBC(06/01/2022)
      • Moonbeam(05/10/2022)
      • Conflux eSpace(05/09/2022)
    • 📘Version Update
Powered by GitBook
On this page
  1. Reference
  2. API Reference

Transit Swap Aggregation

Transit Swap API of Aggregation

chain supported:

ETH

BSC

HECO

OEC

HSC

MATIC

FTM

AVAX

ARB

KLAY

KCC

Solana

Aptos

Transit Swap API for Aggregation

GET https://aggserver.transit.finance/v3/transit/swap

Query Swap Info and ABI data

Query Parameters

Name
Type
Description

token0*

string

contract address of a token to sell

token1*

string

contract address of a token to buy.

decimal0*

integer

Decimals of a token to sell

decimal1*

integer

Decimals of a token to buy

impact*

integer

Slippage Tolerance. 0 - 10000

part*

integer

The scale of amountIn. 1 - 100

amountIn*

integer

Amount of a token to sell

amountOutMin*

integer

Minimum received

to*

string

Recipient of desToken

issuer

string

Sender of transaction push

chain*

string

chain flag

channel

string

"default"、"web"、"android"、"ios"、"extension"

{
    "result": 0, //if error will be -1
    "message": "success", //if error: error info
    "data": {
        "srcToken": "",
        "dstToken": "",
        "part": "",
        "to": "",
        "sender": "",
        "amountIn": "",
        "usedAmountIn": "",
        "totalAmountOut": "",
        "totalAmountOutMin": "",
        "impact": "",
        "normalFee": "",
        "fee": "",
        "feeRate": "",
        "aggregator": "",
        "dexPath": [
            "Uniswap:50",
            "Sushi:50"
        ],
        "amounts": [
            {
                "exchange": "",
                "icon_url": "",
                "amountOut": ""
            },
            ...
        ],
        "data": ""
    }
}

Request Params Details

  • amountIn: calculated with decimals, For example 1ETH = 10**18

  • impact: base 1000, uint:‱, For example 1% = 100‱

  • amountOutMin: first time set 0, when user push transaction and set amountOutMin of last query

  • chain: set chain string of supported.

Responses Details

  • totalAmountOut: dstToken received (estimated)

  • normalFee: calc fee with feeRate

  • fee: actual fees paid

  • aggregator: Transit swap Router v3

  • dexPath: the sources of used dex for used part

  • amounts: all sources of dex's single amountOut

  • data: ABI data can be sent directly to router contract

PreviousTransit Swap TRONNextTransit Swap Cross

Last updated 2 years ago

🎃
👻