Cross Chain API

Get MinSend

  • Method: Get

  • URL: https://api.0xgen.io/cross_chain/v1/cross/getMinSend

  • Parameters:

{
    fromChainId: String // from chain id 
    toChainId: String // destination chain id
    address: String // token address
}
  • Example:

Request:

https://api.0xgen.io/cross_chain/v1/cross/getMinSend?fromChainId=56&toChainId=137&address=0x55d398326f99059ff775485246999027b3197955

Response:

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

Get Cross Status

  • Method: Get

  • URL: https://api.0xgen.io/cross_chain/v1/cross/getCrossStatus

  • Parameters:

  • Example:

Request:

Response:

Quote Route

  • Method: Get

  • URL: https://api.0xgen.io/cross_chain/v1/cross/quote

  • Parameters:

  • Example:

Request:

Response:

Last updated