GET Swap Info by Order ID
GET /api/queryCrossInfoByOrderId
Complete Query Example
Request Params
Name | Location | Type | Required | Description |
orderId | query | string | yes | order id |
Responses
HTTP Status Code | Meaning | Description | Data schema |
200 | 成功 | Inline |
Responses Data
Name | Type | Description |
info | JSONObject | Result data info. |
Responses Params
Name | Type | Description |
fromChain | JSONObject | Source Chain Info. |
- chainId | String | Chain Id. |
- chainName | String | Chain name. |
- scanUrl | String | Explorer Url. |
- chainImg | String | Chain Icon Url. |
relayerChain | JSONObject | Relayer Chain Info. |
- chainId | String | Chain Id. |
- chainName | String | Chain name. |
- scanUrl | String | Explorer Url. |
- chainImg | String | Chain Icon Url. |
toChain | JSONObject | Destination Chain Info. |
- chainId | String | Chain Id. |
- chainName | String | Chain name. |
- scanUrl | String | Explorer Url. |
- chainImg | String | Chain Icon Url. |
tokenAddress | String | Source Token Address. |
tokenSymbol | String | Source Token Symbol. |
timestamp | String | Source Transfer Time. |
completeTime | String | Cross chain completion time. |
amount | decimal | Cross amount. |
inAmount | decimal | Receive amount. |
fee | decimal | Fee amount. |
state | Integer | Cross state, 0: crossing, 1: completed |
sourceHash | String | Source Chain Transaction Hash. |
relayerHash | String | Relayer Chain Transaction Hash, null if no relay chain is required |
toHash | String | Destination Chain Transaction Hash,When not completed, the destination chain hash is null. |
sourceAddress | String | Cross address. |
toAddress | String | Receive address. |
sourceToken | JSONObject | Source Token Info. |
- chainId | BigInteger | Chain Id. |
- address | String | Token address. |
- name | String | Token name. |
- symbol | String | Token symbol. |
- decimal | Integer | Token decimal. |
- icon | String | Token icon url. |
destinationToken | JSONObject | Destination Token Info. |
- chainId | BigInteger | Chain Id. |
- address | String | Token address. |
- name | String | Token name. |
- symbol | String | Token symbol. |
- decimal | Integer | Token decimal. |
- icon | String | Token icon url. |
feeToken | JSONObject | Fee Token Info. |
- chainId | BigInteger | Chain Id. |
- address | String | Token address. |
- name | String | Token name. |
- symbol | String | Token symbol. |
- decimal | Integer | Token decimal. |
- icon | String | Token icon url. |
Response Examples
200 Response
Last updated