Upload Transaction Information

Provide the trade rate between two tokens, the trade rate update rate is 5-10s

Upload Swap Transaction Information

POST /petty/uploadTxId

<Description of the endpoint>

Request Headers

Name
Value

Content-Type

application/json

Request Body

{
    "fromCoinContact":"",
    "toCoinContact":"",
    "fromCoinNetwork":"",
    "toCoinNetwork": "",
    "fromCoinAmt":"",
    "toCoinAmt":"",
    "fromAddress":"",
    "toAddress": "",
    "hash":"",
    "source":"",
    "model": "1"
}

Request parameter Description

Parameter name
Required
说明

fromCoinContact

true

fromCoinContact

toCoinContact

true

toCoinContact

fromCoinNetwork

true

fromCoinNetwork

toCoinNetwork

true

toCoinNetwork

fromCoinAmt

true

Deposit amount

toCoinAmt

true

Send amount

fromAddress

true

fromAddress

toAddress

true

toAddress

hash

true

hash

source

true

sourceFlag

model

true

Whether to allow errors caused by changes in mining fees 1 Allow 0 Not allow

Response

{
    "resCode": "800",
    "resMsg": "成功",
    "data": {
        "orderId": "XXXXXXXXX" //order id
    }
}

Last updated