DODO Docs
Search
⌃K

Cross Chain New Order Status

Request

Request Example

Please refer to the specific routing introduction on the developer platform for the Cross Chain New Order Status functionality.

Request Body

name
type
option
description
user
string
required
Source user address

Response

Example Response

{
"code": 0,
"data": [
{
"id": 2035,
"user": "0x0000000000000000000000000000000000000000",
"fromChainId": 56,
"fromTokenAddress": "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d",
"fromAmount": "2000000000000000000",
"toChainId": 137,
"toTokenAddress": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
"toAmount": "1997316",
"toAddress": "0x0000000000000000000000000000000000000000",
"fromHash": "0x9ca6a82ce4d55523d071ea07e43833cfec55adb9267001ea524858ce6cb6ddc7",
"toHash": "0xd71989e46a7b0a57211357e83883cc36ddc1b0f3758aa770a170e13f11066db2",
"product": "connext",
"status": "DONE",
"subStatus": "DONE",
"message": "success-CompletedFast",
"transactionAmount": 2,
"createdAt": "2023-02-06T09:07:51.384Z",
"updatedAt": "2023-02-08T08:43:31.213Z",
"crossChainOrderStatus": [
{
"id": 86,
"orderId": 2035,
"beforeStatus": "PENDING",
"status": "DONE",
"beforeSubStatus": "PENDING",
"subStatus": "DONE",
"message": "success-CompletedFast",
"isNew": true,
"createdAt": "2023-02-08T08:43:31.213Z",
"updatedAt": "2023-02-08T08:43:31.213Z"
}
]
}
],
"message": "请求成功"
}
​

Response Parameters

name
type
description
id
number
Order id
user
string
User address
fromChainId
number
Source chain
fromTokenAddress
string
Source token address
fromAmount
string
Source amount
toChainId
number
Destination chain
toTokenAddress
string
Destination token address
toAmount
string
Amount to be received
toAddress
string
Destination user address
fromHash
string
Source chain hash
toHash
string
Destination chain hash
product
string
Product name
status
string
Order status One of: PENDING/DONE/FAILED
subStatus
string
Order substatus One of:
PENDING/DONE/FAILED/FAILED_REFUNDED/PARTIAL/TRANSFER_REFUNDED/INVALID/NOT_FOUND
message
string
Message
createdAt
date
Creation time
updatedAt
date
Update time
crossChainOrderStatus
array
​
crossChainOrderStatus.id
number
Order status ID
crossChainOrderStatus.orderId
number
Order ID
crossChainOrderStatus.beforeStatus
string
Previous status
crossChainOrderStatus.status
string
New status
crossChainOrderStatus.beforeSubStatus
string
Previous substatus
crossChainOrderStatus.subStatus
string
New substatus
crossChainOrderStatus.message
string
​
crossChainOrderStatus.isNew
boolean
Is it the latest status?
crossChainOrderStatus.createdAt
date
​