Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Trades

Manage and view trading activity

List marketplace trades

get
/v1/trades

Retrieves a list of trades in the marketplace. Trades represent peer-to-peer exchanges between users, including offers and accepted deals.

Results are ordered by creation date (most recent first).

Note: This endpoint currently returns all trades without pagination support.

Responses
200

List of trades

application/json
idstringRequired

Trade ID

buyerstringRequired

Buyer address

sellerstringRequired

Seller address

pricenumberRequired

Trade price

statusstring · enumRequired

Trade status

Possible values:
createdAtstring · date-timeOptional

Trade creation timestamp

get/v1/trades
GET /v1/trades HTTP/1.1
Host: marketplace-api.decentraland.org
Accept: */*
200

List of trades

[
  {
    "id": "text",
    "buyer": "text",
    "seller": "text",
    "item": {
      "id": "text",
      "name": "text",
      "description": "text",
      "image": "text",
      "category": "text",
      "rarity": "text",
      "price": 1,
      "owner": "text"
    },
    "price": 1,
    "status": "pending",
    "createdAt": "2026-01-01T00:00:00.000Z"
  }
]

Create a new trade

post
/v1/trades

Creates a new trade offer in the marketplace.

Authentication Required: This endpoint requires Decentraland authentication with signed metadata. The authentication validates:

  • User identity via signed message (ADR-44l)

  • Authorized origins (dcl:marketplace or dcl:builder)

  • Metadata intent (dcl:create-trade)

The trade will be validated against blockchain data and marketplace rules before creation. Only trades signed on the newest off-chain marketplace (OffChainMarketplaceV3) are accepted; the older ones are being retired, and a trade signed on one is refused with a 400.

Authorizations
AuthorizationstringRequired

Signed fetch authentication using decentraland-crypto-middleware with metadata validation (ADR-44l). Requires auth chain headers (x-identity, x-signature, x-timestamp) for signature validation. See http://adr.decentraland.org/adr/ADR-44l for details.

Body
itemIdstringRequired

Item ID

pricenumberRequired

Trade price

sellerstringRequired

Seller address

Responses
201

Trade created successfully

application/json
idstringRequired

Trade ID

buyerstringRequired

Buyer address

sellerstringRequired

Seller address

pricenumberRequired

Trade price

statusstring · enumRequired

Trade status

Possible values:
createdAtstring · date-timeOptional

Trade creation timestamp

post/v1/trades
POST /v1/trades HTTP/1.1
Host: marketplace-api.decentraland.org
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 43

{
  "itemId": "text",
  "price": 1,
  "seller": "text"
}
{
  "id": "text",
  "buyer": "text",
  "seller": "text",
  "item": {
    "id": "text",
    "name": "text",
    "description": "text",
    "image": "text",
    "category": "text",
    "rarity": "text",
    "price": 1,
    "owner": "text"
  },
  "price": 1,
  "status": "pending",
  "createdAt": "2026-01-01T00:00:00.000Z"
}

Get trade by ID

get
/v1/trades/{id}

Retrieves detailed information about a specific trade including:

  • Trade participants (buyer and seller)

  • Item details and metadata

  • Trade price and currency

  • Current status (pending, completed, or cancelled)

  • Timestamps (creation, updates, completion)

Path parameters
idstringRequired

Unique trade identifier

Responses
200

Trade details

application/json
idstringRequired

Trade ID

buyerstringRequired

Buyer address

sellerstringRequired

Seller address

pricenumberRequired

Trade price

statusstring · enumRequired

Trade status

Possible values:
createdAtstring · date-timeOptional

Trade creation timestamp

get/v1/trades/{id}
GET /v1/trades/{id} HTTP/1.1
Host: marketplace-api.decentraland.org
Accept: */*
{
  "id": "text",
  "buyer": "text",
  "seller": "text",
  "item": {
    "id": "text",
    "name": "text",
    "description": "text",
    "image": "text",
    "category": "text",
    "rarity": "text",
    "price": 1,
    "owner": "text"
  },
  "price": 1,
  "status": "pending",
  "createdAt": "2026-01-01T00:00:00.000Z"
}

Get trade acceptance event

get
/v1/trades/{hashedSignature}/accept

Retrieves information about a trade acceptance event using the hashed signature. This endpoint is used to verify and track when a trade offer was accepted on-chain.

The hashed signature serves as a unique identifier linking the off-chain trade to its blockchain transaction acceptance event.

Path parameters
hashedSignaturestringRequired

Keccak-256 hashed signature of the trade acceptance transaction

Responses
200

Trade accepted event

application/json
tradeIdstringRequired

Trade ID

hashedSignaturestringRequired

Hashed signature

timestampstring · date-timeOptional

Event timestamp

get/v1/trades/{hashedSignature}/accept
GET /v1/trades/{hashedSignature}/accept HTTP/1.1
Host: marketplace-api.decentraland.org
Accept: */*
{
  "tradeId": "text",
  "hashedSignature": "text",
  "timestamp": "2026-01-01T00:00:00.000Z"
}

The signer's trades cancelled for a reason that still need re-creating

get
/v1/cancelled-trades

The signed-in signer's listings and bids cancelled for the given reason, computed from the trades indexer's event history. With contract_signature_index_bump, a trade counts when the marketplace's contract signature index bump is what invalidated it: at that moment it was unexpired, signed against both current indexes, not cancelled by its signer and not used up.

A trade is left out once its original expiration passes, once the signer re-creates it (same type and asset, on a marketplace the bump didn't reach, whatever became of that re-creation since) or once its asset can no longer be traded (the signer no longer owns the NFT, the item sold out). One row per asset, newest first; total covers every page. Requires a signed fetch from dcl:marketplace or dcl:builder.

Authorizations
AuthorizationstringRequired

Signed fetch authentication using decentraland-crypto-middleware with metadata validation (ADR-44l). Requires auth chain headers (x-identity, x-signature, x-timestamp) for signature validation. See http://adr.decentraland.org/adr/ADR-44l for details.

Query parameters
reasonstring · enumRequiredPossible values:
firstinteger · min: 1Optional

Page size, capped at 100.

Default: 20
skipintegerOptionalDefault: 0
Responses
200

A page of cancelled trades and how many there are

application/json
totalintegerRequired
get/v1/cancelled-trades
GET /v1/cancelled-trades?reason=contract_signature_index_bump HTTP/1.1
Host: marketplace-api.decentraland.org
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "total": 1,
  "data": [
    {
      "id": "text",
      "type": "bid",
      "network": "ETHEREUM",
      "chainId": 1,
      "contract": "text",
      "reason": "contract_signature_index_bump",
      "createdAt": 1,
      "expiresAt": 1,
      "cancelledAt": 1,
      "asset": {
        "contractAddress": "text",
        "tokenId": null,
        "itemId": null,
        "name": null,
        "image": null
      },
      "price": {
        "assetType": 1,
        "amount": "text"
      }
    }
  ]
}

Last updated