<Cancel Listing> Interface

Use the order platform number and user wallet address to cancel the listing requested by user

Request Address: /api/v2/meta/cancelOrder

Request Method: POST

Request Parameters:

Field Name
Field Description
Type
Notes

platformId

Platform ID of the platform that user request to cancel the order

integer

userAddr

User Wallet Contract Address

string

payload

Parameters of the Cancelled Order (nonce field transferred by looksrare)

*****************/x2y2 plaform payload field description:/ *****************

{
    "sign_message": "0x00..."
    "sign": "0x00..."
    "caller": "0x2794731a276e4446809E06C45C859797542d7D7f",
    "op": 3,
    "items": [
        {
            "orderId": 990845
        },
        {
            "orderId": 990840
        }    
    ]
}

-sign_message keccak hex of the message to be signed by the maker

-sign message signature

-caller is the order maker(might not be your contract’s address)

-op fixed to given value

-items is orders to sign

/******************************************/

Output Parameters:

Field Name
Field Description
Type
Notes

txInfo

Cancel listing request parameters

jsonObject

{
    "resCode": "100",
    "resMsg": "Success",
    "data": {
        "txInfo":{
			"from":"0x76336D2903E8F6d62Cc3F5d05283108e3D2785e0",
			"to":"0xd5a9f6aE47fEEE2a4b886CC5DB870eD7cfc108FD",
			"value":"0x123000000000",
			"data":"0x123456",
		}
    }
}

Last updated