Create order

Create order

POST /petty/swap

<Description of the endpoint>

Request Headers

Name
Value

Content-Type

application/json

Request Body

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

Request parameter Description

Parameter name
Required
Remarks

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": {
        "contractAddress": "0x22C5AB813418B7EE235e",
        "data": "0xed0b2a000000000000000000000000000000000000000000000000000000010f4d2000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000fb7700000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002a3078393730323233304138456135333630316635634432646330306644426331336434644634413863370000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054156415843000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a30786365663765343464313332383665323337383265313264363534343535666135623335663336663800000000000000000000000000000000000000000000",
        "value": "0"
    }
}

Response Parameter Description

Field
Type
Remarks

contractAddress

String

Deposit address

Last updated