Transit Finance(English)
Search…
⌃K
👾

Transit Swap Cross

Transit cross-chain swap api
chains supported (fromChainID & toChainID):
  • Ethereum: 1
  • BSC: 56
  • OkExchain: 66
  • HECO: 128
  • Matic: 137
  • Fantom: 250
  • KCC: 321
  • AVAX: 43114
  • TRON: 95500
bridge supported:
  • ANYSWAP
  • METAPATH
  • CBRIDGE

Tokens API

get
https://aggserver.transit.finance/v3/cross/common/list
Cross Tokens List

Swap API

get
https://aggserver.transit.finance/v3/cross/swap
Transit Swap API for Cross
Responses Details
  • amountOut: cross-swap amountOut on toChain for token1
  • router: Transit swap Router v3
  • exchange: use bridge (anySwap or MetaPath)
  • data: ABI data can be sent directly to router contract
  • about 'relayerFee': if exchange is MetaPath, it'll be the number of token1

Cross Order Callback API

If use 'MetaPath' to cross swap, it's better to request this api to speed up transactions.
get
https://aggserver.transit.finance/v3/cross/order
Order Callback