Skip to main content
GET
/
api
/
minting
/
contracts
JavaScript
import SnagSolutions from '@snagsolutions/sdk';

const client = new SnagSolutions({
  apiKey: process.env['X_API_KEY'], // This is the default and can be omitted
});

const contracts = await client.minting.contracts.list();

console.log(contracts.data);
{
  "data": [
    {
      "address": "<string>",
      "description": "<string>",
      "enableGasless": true,
      "externalLinkUrl": "<string>",
      "hasRevealMechanic": true,
      "hideInactiveListings": true,
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "imageUrl": "<string>",
      "isFreeClaimForBadgeHolders": true,
      "isFreeClaimForTokenHolders": true,
      "isListed": true,
      "isPerAssetMintLimit": true,
      "isSoulbound": true,
      "name": "<string>",
      "network": "abstract",
      "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "preRevealMedia": "<string>",
      "primarySaleRecipientAddress": "<string>",
      "relayerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "requireHoldingAllGatedItems": true,
      "revealAvailableAt": "2023-11-07T05:31:56Z",
      "royaltyFee": "<unknown>",
      "royaltyFeeAddress": "<string>",
      "shouldCollectEmail": true,
      "showOnMarketplace": true,
      "sortId": 123,
      "symbol": "<string>",
      "tokenType": "erc721",
      "websiteCollectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "websiteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "mintingContractAssets": [
        {
          "auctionItems": [
            {
              "id": "<string>"
            }
          ],
          "animationUrl": "<string>",
          "assetNr": 123,
          "currencyAddress": "<string>",
          "currencyDecimals": 123,
          "description": "<string>",
          "id": "<string>",
          "imageUrl": "<string>",
          "isListed": true,
          "isPhygitalItem": true,
          "isHidden": true,
          "shouldCollectUserInfo": true,
          "collectInfoType": "customInput",
          "listingEndsAt": "2023-11-07T05:31:56Z",
          "listingStartsAt": "2023-11-07T05:31:56Z",
          "loyaltyCurrencyId": "<string>",
          "name": "<string>",
          "organizationId": "<string>",
          "price": "<unknown>",
          "quantity": 123,
          "quantityMinted": 123,
          "unlimitedQty": true,
          "revealedAt": "2023-11-07T05:31:56Z",
          "tokenId": 123,
          "websiteId": "<string>"
        }
      ],
      "mintingContractBadgeAssociation": [
        {
          "loyaltyBadge": {
            "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "name": "<string>",
            "imageUrl": "<string>"
          }
        }
      ],
      "mustOwnCollections": [
        {
          "address": "<string>",
          "network": "abstract"
        }
      ],
      "_count": {
        "mintingContractAssets": 123
      }
    }
  ],
  "hasNextPage": true,
  "stats": [
    {
      "mintingContractId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "_sum": {
        "quantity": 123,
        "quantityMinted": 123
      },
      "_count": {
        "isListed": 123
      }
    }
  ]
}

Query Parameters

websiteId
string<uuid>
organizationId
string<uuid>
startingAfter
string<uuid>
limit
integer
Required range: 1 <= x <= 1000
showOnMarketplace
boolean | null
includeDeleted
boolean | null
default:false

Response

200

data
object[]
required
hasNextPage
boolean
required
stats
object[]
required