OmniBridge API
DappChinese API
  • Description
  • CROSS-CHAIN SWAP API
    • SWAP Interface
    • Exchange Time Order Graph
    • Check Token Types List Port
    • Obtain exchange rate basic information port
    • Create Order
    • Upload Transaction Hash
    • Batch Upload Transaction Hash
    • Check order status
    • Batch of Check order status
    • All Orders
    • Upload gas free orders
Powered by GitBook
On this page
  1. CROSS-CHAIN SWAP API

Batch Upload Transaction Hash

1. Request Url

https://{host}/api/v2/batchModifyTxId

2. Request Param

Parameter name
Is it necessary
description

modifyTxIdList

Y

Transaction information collection (up to 1000)

orderId

Y

transaction order number

depositTxid

Y

transaction hash value

3.Request Example

{
  "modifyTxIdList": [
    {
      "orderId": "33434232-1556-yt6g-99a8-2c303f490c2c",
      "depositTxid": "0x643ccccccccccccccc4c4"
    },
    {
      "orderId": "33120af8-1866-4cb6-99a8-2c303f490c2c",
      "depositTxid": "0x123aaaaaaaaaaaaaaaaa6"
    }
  ]
}

4.Response Data

{
    "resCode": "800",
    "resMsg": "成功",
    "data": {
        "successNum": 1, // Number of successfully uploaded orders
        "failIds": [     // The set of order ids that failed to be uploaded, the reason for the failure: the order already has a hash, and the uploaded hash is not standardized
            "1"
        ]
    }
}
PreviousUpload Transaction HashNextCheck order status

Last updated 2 years ago