nft_collectionNfts
Allows you to easily fetch a collection's NFT information.
You can specify the contract address and metadata(or not), then you can obtain all the information of NFTs in that collection, including token ID and token URI. Using this API, you could have a broad view of the NFTs in certain collection.
Supported on Ethereum and BNB Chain.

Parameters

Object - An object with the following fields (required):
  • contractAddress(hex string, required) - the contract address of the collection. BlockVision currently support both ERC721 and ERC1155.
  • withMetaData(boolean, optional) - indicate the query need NFT's metadata or not.
  • pageSize(integer number, optional, default 20 max 50) - max number of results to return per call.
  • pageIndex(integer number, optional, default 1) - page index.

Returns

Object - An object with the following fields:
Response Payload:
  • id(integer number) - json-rpc id.
  • jsonrpc(string) - json-rpc version.
  • result(object) - an object with the following fields:
    • nextPageIndex(integer number) - next page index.
    • total(integer number) - total mint records.
    • data(array of objects, withMetaData) - response datas.
  • Object schema:
    • tokenID(string) - id of the NFT.
    • ercStandard(string) - ERC standard of NFT, the enumeration value can be erc721, erc1155, or empty.
    • tokenURI(hex string) - URI of the NFT.
    • metadata(object) - metadata object for each NFT asset.
      • image(string) - URL to the NFT asset image. Can be standard URLs pointing to images on conventional servers, IPFS, or Arweave. Most types of images (SVGs, PNGs, JPEGs, etc.) are supported by NFT marketplaces.
      • name(string) - Name of the NFT asset.
      • description(string) - Human-readable description of the NFT asset. (Markdown is supported/rendered on OpenSea and other NFT platforms).
      • external_link(string) - The image URL that appears alongside the asset image on NFT platforms.
      • attributes(array object) - traits/attributes/characteristics for each NFT asset.
        • trait_type(string) - The name of the trait.
        • value(string) - The value of the trait.

Example

Request

curl https://api.blockvision.org/v1/<api key> \
-X POST \
-H "Content-Type: application/json" \
-d '{
"id": 1,
"jsonrpc": "2.0",
"method": "nft_collectionNfts",
"params": {
"contractAddress": "0xe785E82358879F061BC3dcAC6f0444462D4b5330",
"withMetaData": true,
"pageIndex": 1,
"pageSize": 5
}
}'

Result

{
"jsonrpc": "2.0",
"id": 1,
"result": {
"data": [
{
"tokenID": "0",
"ercStandard": "erc721",
"tokenURI": "https://wow-prod-nftribe.s3.eu-west-2.amazonaws.com/t/0",
"metadata": {
"attributes": [
{
"trait_type": "Background",
"value": "Soft Purple"
},
{
"trait_type": "Skin Tone",
"value": "Light Warm Yellow"
},
{
"trait_type": "Eyes",
"value": "Brown Straight"
},
{
"trait_type": "Facial Features",
"value": "Heart Tattoo"
},
{
"trait_type": "Hairstyle",
"value": "Platinum Pixie"
},
{
"trait_type": "Clothes",
"value": "Freedom Is Power Tee"
},
{
"trait_type": "Necklace",
"value": "Malka"
},
{
"trait_type": "Earrings",
"value": "Ocean Hoops"
},
{
"trait_type": "Mouth",
"value": "Bubble Gum"
},
{
"trait_type": "Lips Color",
"value": "Flashy Blue"
}
],
"description": "World of Women: 10,000 unique, cool and diverse Women living on the Blockchain.",
"external_link": "https://worldofwomen.art",
"image": "ipfs://QmYPznMvizE4BxrYaXM8dpRrzgN6Pg2rtTczjzNn13More",
"name": "Woman #0"
}
},
{
"tokenID": "1",
"ercStandard": "erc721",
"tokenURI": "https://wow-prod-nftribe.s3.eu-west-2.amazonaws.com/t/1",
"metadata": {
"attributes": [
{
"trait_type": "Background",
"value": "Pink Pastel"
},
{
"trait_type": "Skin Tone",
"value": "Light Warm Yellow"
},
{
"trait_type": "Eyes",
"value": "Yellow To The Right"
},
{
"trait_type": "Facial Features",
"value": "Sunset"
},
{
"trait_type": "Hairstyle",
"value": "Bob"
},
{
"trait_type": "Face Accessories",
"value": "Red Round Sunglasses"
},
{
"trait_type": "Clothes",
"value": "Futuristic Dress"
},
{
"trait_type": "Earrings",
"value": "Lightning Bolts"
},
{
"trait_type": "Mouth",
"value": "Slighly Open"
},
{
"trait_type": "Lips Color",
"value": "Passion Red"
}
],
"description": "World of Women: 10,000 unique, cool and diverse Women living on the Blockchain.",
"external_link": "https://worldofwomen.art",
"image": "ipfs://QmSdv72GwEDFoCspXJN7Bki9UzDyTsmbAd8zoRtMHjW3qT",
"name": "Woman #1"
}
},
{
"tokenID": "10",
"ercStandard": "erc721",
"tokenURI": "https://wow-prod-nftribe.s3.eu-west-2.amazonaws.com/t/10",
"metadata": {
"attributes": [
{
"trait_type": "Background",
"value": "Green Purple"
},
{
"trait_type": "Skin Tone",
"value": "Medium Olive"
},
{
"trait_type": "Eyes",
"value": "Yellow Eye Roll"
},
{
"trait_type": "Facial Features",
"value": "Treble Bass Clef Tattoo"
},
{
"trait_type": "Hairstyle",
"value": "Fuchsia"
},
{
"trait_type": "Face Accessories",
"value": "70s Feels"
},
{
"trait_type": "Necklace",
"value": "Amazonite Energy"
},
{
"trait_type": "Clothes",
"value": "80s Silk Shirt"
},
{
"trait_type": "Earrings",
"value": "Flower Power"
},
{
"trait_type": "Mouth",
"value": "Slighly Open"
},
{
"trait_type": "Lips Color",
"value": "Burgundy"
}
],
"description": "World of Women: 10,000 unique, cool and diverse Women living on the Blockchain.",
"external_link": "https://worldofwomen.art",
"image": "ipfs://QmPryvCiSYB1Xh6FeAUXH8tV6kHUxsUyjJUjcW9F3BN5o7",
"name": "Woman #10"
}
},
{
"tokenID": "100",
"ercStandard": "erc721",
"tokenURI": "https://wow-prod-nftribe.s3.eu-west-2.amazonaws.com/t/100",
"metadata": {
"attributes": [
{
"trait_type": "Background",
"value": "Yellow Pink"
},
{
"trait_type": "Skin Tone",
"value": "Deep Warm Gold"
},
{
"trait_type": "Eyes",
"value": "Black Eye Roll"
},
{
"trait_type": "Facial Features",
"value": "Marilyn"
},
{
"trait_type": "Hairstyle",
"value": "Retro"
},
{
"trait_type": "Clothes",
"value": "Cherry Tee"
},
{
"trait_type": "Necklace",
"value": "Tutti Frutti Beads"
},
{
"trait_type": "Earrings",
"value": "Yam's Fave"
},
{
"trait_type": "Mouth",
"value": "Slighly Open"
},
{
"trait_type": "Lips Color",
"value": "Passion Red"
}
],
"description": "World of Women: 10,000 unique, cool and diverse Women living on the Blockchain.",
"external_link": "https://worldofwomen.art",
"image": "ipfs://QmPNK6Pr9AthXRUJpi9MKzCxXAsVKoMADCcZhniU4PcbTc",
"name": "Woman #100"
}
},
{
"tokenID": "1000",
"ercStandard": "erc721",
"tokenURI": "https://wow-prod-nftribe.s3.eu-west-2.amazonaws.com/t/1000",
"metadata": {
"attributes": [
{
"trait_type": "Background",
"value": "Yellow Pink"
},
{
"trait_type": "Skin Tone",
"value": "Light Warm Olive"
},
{
"trait_type": "Eyes",
"value": "Green Eye Roll"
},
{
"trait_type": "Facial Features",
"value": "Marilyn"
},
{
"trait_type": "Hairstyle",
"value": "Feeling Turquoise"
},
{
"trait_type": "Face Accessories",
"value": "3D Glasses"
},
{
"trait_type": "Necklace",
"value": "Amazonite Energy"
},
{
"trait_type": "Clothes",
"value": "Red Leather Jacket"
},
{
"trait_type": "Earrings",
"value": "60s Fantasy"
},
{
"trait_type": "Mouth",
"value": "Slight Smile"
},
{
"trait_type": "Lips Color",
"value": "Purple"
}
],
"description": "World of Women: 10,000 unique, cool and diverse Women living on the Blockchain.",
"external_link": "https://worldofwomen.art",
"image": "ipfs://QmUEFAJBhppDN8pN8hoXFQVA9kXRK1D3nYs4h2N7r6BodH",
"name": "Woman #1000"
}
}
],
"nextPageIndex": 2,
"total": 10000
}
}
Copy link
Outline
Parameters
Returns
Example
Request
Result