cm_listCollections

Get a list of all collections associated with your account

Replace:

  • <QUICKNODE_URL>: Set to your own quicknode RPC URL
curl -i '<QUICKNODE_URL>' -X POST -H 'content-type: application/json' --data-binary '{
    "jsonrpc": "2.0",
    "method": "cm_listCollections",
    "params": [
    ]
  }'

Parameters

No input parameters

Returns

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