How to Get All ERC-721 and ERC-1155 Collections
Follow this tutorial to learn how to get all ERC-721 and ERC-1155 collections.
This tutorial explains the steps involved in getting Ethereum Mainnet collections of ERC-721 and ERC-1155 tokens.
Step 1. Use the collections endpoint with the following details:
-
protocol:
ethereum
-
network:
mainnet
https://svc.blockdaemon.com/nft/v1/ethereum/mainnet/collections
Step 2. Add the following parameters:
-
token type 1
- parameter:
token_type
- value:
ERC721
- parameter:
-
token type 2
- parameter:
token_type
- value:
ERC1155
https://svc.blockdaemon.com/nft/v1/ethereum/mainnet/collections?token_type=ERC721&token_type=ERC1155
- parameter:
Note: The following token types are also available: ERC20
, CRYPTOPUNKS
Step 3. Execute the query.
For example, in cURL, you should run the following code:
curl -X GET 'https://svc.blockdaemon.com/nft/v1/ethereum/mainnet/collections?token_type=ERC721&token_type=ERC1155' -H 'Authorization: Bearer YOUR_API_KEY'
Note!
To authorize your request, you need to get an API key and use it as a bearer token or a query parameter. Learn more: Authentication Guide
Step 4. Your results will look something like this:
{
"data": [
{
"id": "4203aedd-7964-5fe1-b932-eb8c4fda7822",
"name": "Bored Ape Yacht Club",
"logo": "collection/4203aedd-7964-5fe1-b932-eb8c4fda7822/logo.png",
"contracts": [
"0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D"
],
"verified": true
},
{...more collections...}
],
"meta": {
"paging": {
"next_page_token": ""
}
}
}
The response does not contain token types, but you can get them with another endpoint:
👋 Need Help?
Contact us through email or our support page for any issues, bugs, or assistance you may need.
Updated about 1 month ago