Marketplace API
Query offer

Query offer#

This endpoint is used to fetch the set of active offers on a given NFT for the Seaport contract.

Request address#


Request param#

chainStringYesChain name refer to Supported blockchains for details
collectionAddressStringNoAddress of the contract for an NFT
tokenIdStringNoThe token for an NFT
makerStringNoFilter by the order maker's wallet address
createAfterStringNoOnly show orders listed after this timestamp; seconds since the UNIX epoch
createBeforeStringNoOnly show orders listed before this timestamp; seconds since the UNIX epoch
updateAfterStringNoOnly show orders updated after this timestamp; seconds since the UNIX epoch
updateBeforeStringNoOnly show orders updated before this timestamp; seconds since the UNIX epoch
statusStringNoFilter by the order status; the options are active, inactive, cancelled, and sold
sortStringNoHow to sort the orders: can be create_time_desc for when they were made, or update_time_desc for when they were updated, or price_desc to see the highest-priced orders first or price_asc to see the lowest-priced orders first; the default sort is in positive order
limitStringNoNumber of listings to retrieve; the default value is 50
cursorStringNoA cursor to be supplied as a query param to retrieve a specified page

Response param#

An array of OKX order model

orderIdStringID of order
createTimeLongThe date order was created
updateTimeLongThe date order was updated
listingTimeLongThe date order was listed
expirationTimeLongThe endTime indicates the block timestamp at which the order expires
statusStringThe order status, includes active, cancelled, sold, and inactive
orderHashStringThe order hash
protocolDataStringThe parameters of order (JSON)
protocolAddressStringThe contract address for fulfilling the order
chainStringChain name, includes ETH, Polygon, AVAX, BSC, OKTC, Arbitrum One, Optimism, Klaytn, and zkSync Era
makerStringThe wallet address initiating the order
orderTypeStringOffer indicates offer; BuyNow indicates listings
priceStringUnit price of NFT for the order
currencyAddressStringAddress of the currency for paying the order
collectionAddressStringAddress of the contract for an NFT
tokenIdStringThe token for an NFT
amountStringCount of NFT for the order

Request example#

An array of OKX Order Model


Response example#

  "code": 0,
  "data": {
    "cursor": "ODg0MjY2NDgz",
    "data": [
        "amount": "1",
        "chain": "eth",
        "collectionAddress": "0x457efd33def0bff2dfe33089d385898d919d3a10",
        "createTime": 1680047938,
        "currencyAddress": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
        "expirationTime": 1680307118,
        "listingTime": 1680047927,
        "maker": "0x72fde15006cff1bfc1be596f03855a2c55b546e1",
        "orderHash": "0x48cc57480fdbe993821b6679910657845201351448bca623a6b7726fc1f7ff4b",
        "orderType": "Offer",
        "price": "110000",
        "protocolAddress": "0x90a77dd8ae0525e08b1c2930eb2eb650e78c6725",
        "protocolData": {
          "parameters": {
            "conduitKey": "0x618Cf13c76c1FFC2168fC47c98453dCc6134F5c8888888888888888888888888",
            "consideration": [
                "endAmount": "1",
                "identifierOrCriteria": "77735144008553370296572895450686144694166639583550383356598452408298996120723",
                "itemType": 2,
                "recipient": "0x72fde15006cff1bfc1be596f03855a2c55b546e1",
                "startAmount": "1",
                "token": "0x457efd33def0bff2dfe33089d385898d919d3a10"
            "counter": "0",
            "endTime": 1680307118,
            "offer": [
                "endAmount": "110000",
                "identifierOrCriteria": "0",
                "itemType": 1,
                "startAmount": "110000",
                "token": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
            "offerer": "0x72fde15006cff1bfc1be596f03855a2c55b546e1",
            "orderType": 3,
            "salt": "1144075581",
            "startTime": 1680047927,
            "totalOriginalConsiderationItems": 1,
            "zone": "0x868B0635A8858dB9D984B5A27559f961Fd2736c0",
            "zoneHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
          "signature": "0xa413e6e3496fcd8bc28af88d4e1f2db4ccb7b524763ba6d87a56b15b20510d5d1eb782121c96ed61e2b68d537e03f96c51b37e0c325d03ad035091bf1933d4b81b"
        "status": "active",
        "tokenId": "77735144008553370296572895450686144694166639583550383356598452408298996120723",
        "updateTime": 1680047938
  "msg": ""