MetaPath API
  • API Introduction
    • General Instruction
    • Major Blockchain Name Conventions
  • Cross-platform Aggregator Interface
    • Token Swap Flow
    • Get <The Token List> Interface
    • <Price Inquiry> Interface
    • <Swap> Interface
    • <BlackList> Interface
  • Upload gas free orders
  • Aggregate NFTs Interface V1.0
    • Get <Basic Information> Interface
    • Get <NFT List> Interface
    • <Price Inquiry> Interface
    • <Swap> Interface
    • Get <NFT List Held by User> Interface
  • Aggregate NFTs Interface V2.0
    • Get <Latest Collections> Interface
    • Get <Top NFT Collections> Interface
    • <List Page> Interface
    • Get <NFT Details> Interface
    • Get <NFT Details> Other Related Interface
    • <Price Inquiry> Interface
    • <Swap> Interface
    • <Batch Purchase> Interface
  • List Related Interface
    • Get <User's NFT> Interface
    • Get <Listed NFT List (My List)> Interface
    • <Create/Update Listing> Interface
    • <Create/Update Listing in the Backend> Interface
    • <Cancel Listing> Interface
    • <Change Listing> Interface
  • Swap Information Related Interface
    • <Add Swap Information> Interface
    • <Get Swap Information List> Interface
    • <Get Detailed Transation Infromation > Interface
Powered by GitBook
On this page
  1. List Related Interface

<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",
		}
    }
}

Previous<Create/Update Listing in the Backend> InterfaceNext<Change Listing> Interface

Last updated 2 years ago