Skip to main content
POST
/
v1
/
orders
/
list
Get execution plan for listing orders
curl --request POST \
  --url https://api.lootexplus.com/v1/orders/list \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "chainId": 1868,
  "accountAddress": "0x7D878A527e86321aECd80A493E584117A907A0AB",
  "items": [
    {
      "tokenAddress": "0xfc8e7bda94874f6baa591dd70af0fda1fca201ab",
      "tokenType": "ERC721",
      "tokenId": "142",
      "unitPrice": "0.1",
      "quantity": "1",
      "currencyAddress": "0x4200000000000000000000000000000000000006",
      "currencySymbol": "WETH",
      "currencyDecimals": 18,
      "startTime": 1753328679,
      "endTime": 1911066278,
      "fees": [
        {
          "recipient": "0x7D878A527e86321aECd80A493E584117A907A0AB",
          "bps": 250
        }
      ]
    }
  ]
}
'
{
  "steps": [
    {
      "id": "approve-tokens",
      "items": [
        {
          "type": "transaction",
          "data": {
            "to": "0x247369e90ef44b845865b3d2763c8857e9F27593",
            "data": "0xa22cb465000000000000000000000000a313d4f11e69a320a68167e7aafacea8f34135930000000000000000000000000000000000000000000000000000000000000001"
          },
          "token": "0x247369e90ef44b845865b3d2763c8857e9F27593",
          "identifierOrCriteria": "0"
        }
      ]
    },
    {
      "id": "create-orders",
      "needEncodeProofAndSignature": false,
      "items": [
        {
          "type": "signTypedData",
          "data": {
            "domain": {
              "name": "Seaport",
              "version": "1.6",
              "chainId": 1868,
              "verifyingContract": "0xA313D4f11e69A320A68167E7aAfacEA8F3413593"
            },
            "types": {
              "OrderComponents": [
                {
                  "name": "offerer",
                  "type": "address"
                },
                {
                  "name": "zone",
                  "type": "address"
                },
                {
                  "name": "offer",
                  "type": "OfferItem[]"
                },
                {
                  "name": "consideration",
                  "type": "ConsiderationItem[]"
                },
                {
                  "name": "orderType",
                  "type": "uint8"
                },
                {
                  "name": "startTime",
                  "type": "uint256"
                },
                {
                  "name": "endTime",
                  "type": "uint256"
                },
                {
                  "name": "zoneHash",
                  "type": "bytes32"
                },
                {
                  "name": "salt",
                  "type": "uint256"
                },
                {
                  "name": "conduitKey",
                  "type": "bytes32"
                },
                {
                  "name": "counter",
                  "type": "uint256"
                }
              ],
              "OfferItem": [
                {
                  "name": "itemType",
                  "type": "uint8"
                },
                {
                  "name": "token",
                  "type": "address"
                },
                {
                  "name": "identifierOrCriteria",
                  "type": "uint256"
                },
                {
                  "name": "startAmount",
                  "type": "uint256"
                },
                {
                  "name": "endAmount",
                  "type": "uint256"
                }
              ],
              "ConsiderationItem": [
                {
                  "name": "itemType",
                  "type": "uint8"
                },
                {
                  "name": "token",
                  "type": "address"
                },
                {
                  "name": "identifierOrCriteria",
                  "type": "uint256"
                },
                {
                  "name": "startAmount",
                  "type": "uint256"
                },
                {
                  "name": "endAmount",
                  "type": "uint256"
                },
                {
                  "name": "recipient",
                  "type": "address"
                }
              ]
            },
            "message": {
              "offerer": "0x7D878A527e86321aECd80A493E584117A907A0AB",
              "zone": "0x0000000000000000000000000000000000000000",
              "zoneHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
              "startTime": "1754901647",
              "endTime": "1754988047",
              "orderType": 1,
              "offer": [
                {
                  "itemType": 2,
                  "token": "0x247369e90ef44b845865b3d2763c8857e9F27593",
                  "identifierOrCriteria": "0",
                  "startAmount": "1",
                  "endAmount": "1"
                }
              ],
              "consideration": [
                {
                  "itemType": 0,
                  "token": "0x0000000000000000000000000000000000000000",
                  "identifierOrCriteria": "0",
                  "startAmount": "980000000000000000",
                  "endAmount": "980000000000000000",
                  "recipient": "0x7D878A527e86321aECd80A493E584117A907A0AB"
                },
                {
                  "itemType": 0,
                  "token": "0x0000000000000000000000000000000000000000",
                  "identifierOrCriteria": "0",
                  "startAmount": "20000000000000000",
                  "endAmount": "20000000000000000",
                  "recipient": "0x44bC1E612e11d0Acd2c43218Ea55717aC28e3a40"
                }
              ],
              "totalOriginalConsiderationItems": 2,
              "salt": "0x000000000000000000000000000000000000000000000000b0d3d3058c34fef6",
              "conduitKey": "0x0000000000000000000000000000000000000000000000000000000000000000",
              "counter": "0"
            },
            "primaryType": "OrderComponents"
          }
        },
        {
          "type": "post",
          "endpoint": "/v1/orders",
          "body": {
            "data": [
              {
                "offerer": "0x7D878A527e86321aECd80A493E584117A907A0AB",
                "zone": "0x0000000000000000000000000000000000000000",
                "zoneHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
                "startTime": "1754901647",
                "endTime": "1754988047",
                "orderType": 1,
                "offer": [
                  {
                    "itemType": 2,
                    "token": "0x247369e90ef44b845865b3d2763c8857e9F27593",
                    "identifierOrCriteria": "0",
                    "startAmount": "1",
                    "endAmount": "1"
                  }
                ],
                "consideration": [
                  {
                    "itemType": 0,
                    "token": "0x0000000000000000000000000000000000000000",
                    "identifierOrCriteria": "0",
                    "startAmount": "980000000000000000",
                    "endAmount": "980000000000000000",
                    "recipient": "0x7D878A527e86321aECd80A493E584117A907A0AB"
                  },
                  {
                    "itemType": 0,
                    "token": "0x0000000000000000000000000000000000000000",
                    "identifierOrCriteria": "0",
                    "startAmount": "20000000000000000",
                    "endAmount": "20000000000000000",
                    "recipient": "0x44bC1E612e11d0Acd2c43218Ea55717aC28e3a40"
                  }
                ],
                "totalOriginalConsiderationItems": 2,
                "salt": "0x000000000000000000000000000000000000000000000000b0d3d3058c34fef6",
                "conduitKey": "0x0000000000000000000000000000000000000000000000000000000000000000",
                "counter": "0",
                "category": "listing",
                "exchangeAddress": "0xA313D4f11e69A320A68167E7aAfacEA8F3413593",
                "chainId": "1868",
                "hash": "0x06843bdf43d1a9e9ab9483476083d425ca6db0cc604a5aeecaf7af82c559c398",
                "signature": "0x0000000000000000000000000000000000000000000000000000000000000000"
              }
            ],
            "signature": "0x0000000000000000000000000000000000000000000000000000000000000000"
          }
        }
      ]
    }
  ]
}

Authorizations

x-api-key
string
header
required

Body

application/json
chainId
number
required

Chain ID

Example:

1868

accountAddress
string
required

Account address

Example:

"0x7D878A527e86321aECd80A493E584117A907A0AB"

items
object[]
required

Array of listing inputs

Response

200 - application/json

Order listing execution plan

steps
object[]
required

Execution steps