API

Get MinSend

GET https://open-api.openocean.finance/cross_chain/v1/cross/getMinSend

Query Parameters

Name
Type
Description

fromChainId*

Number

source chainId(1, 56, 137, 250, 42161, 43113)

toChainId*

Number

dst chainId(1, 56, 137, 250, 42161, 43113)

address*

String

token address

{
  "code": 200,
  "data": {
    "cbridgeMinSend": "20000000000000000000", // with decimals
    "anyswapMinSend": "12000000000000000000"
  }
}

Get Cross Status

GET https://open-api.openocean.finance/cross_chain/v1/cross/getCrossStatus

Query Parameters

Name
Type
Description

chainId*

Number

source chainId(1, 56, 137, 250, 42161, 43113)

hash*

String

source hash

Quote Route

GET https://open-api.openocean.finance/cross_chain/v1/cross/quoteByOO

Query Parameters

Name
Type
Description

fromChainId*

Number

source chainId(1, 56, 137, 250, 42161, 43113)

toChainId*

Number

dst chainId(1, 56, 137, 250, 42161, 43113)

fromSymbol*

String

source chain token symbol

toSymbol*

String

dst chain token symbol

amount*

String

with decimals (decimals 6, 100 - 100000000)

Cross Swap

POST https://open-api.openocean.finance/cross_chain/v1/cross/:plat/swap

get the cross input data

Request Body

Name
Type
Description

plat*

string

bridge name stargate/squid/symbiosis

account*

string

0x2132b141D19D7563e686Bb6f4764C7cE9097D514

route*

object

route from quoteByOO interface

  • Example:

request:

Request Body:

response: