Replace:

  • <QUICKNODE_URL>: Set to your own quicknode RPC URL
  • <collectionId>: the ID or slug of the collection you want information for
curl -i '<QUICKNODE_URL>' -X POST -H 'content-type: application/json' --data-binary '{
    "jsonrpc": "2.0",
    "method": "cm_getCollection",
    "params": [
      "<collectionId>"
    ]
  }'

Parameters

IndexNameTypeDescription
0collectionIdstringthe ID which serves as the “name” of the collection; use “default-solana” or “default-polygon” for your default collections on each chain.

Returns

{
  "id": "<collectionId>",
  "metadata": {
    "name": "my collection name",
    "description": "my collection description",
    "imageUrl": "https://www.crossmint.com/api/2022-06-09/media/defaultCollectionImage"
  },
  "onChain": {
    "chain": "solana",
    "type": "metaplex-certified-collection"
  }
}