Skip to content

Commit

Permalink
Merge pull request #263 from alchemyplatform/fix-network-support
Browse files Browse the repository at this point in the history
Fix network support
  • Loading branch information
elanh authored Oct 20, 2023
2 parents 92cb734 + 156ba76 commit 2a80b40
Showing 1 changed file with 119 additions and 1 deletion.
120 changes: 119 additions & 1 deletion nft/nfts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.1.0
info:
title: 🎨 NFT API
version: '1.0'
servers:
servers: # servers are also specified at the method level, if there ins't a specification then the server is supported on all the networks below
- url: https://{network}.g.alchemy.com/nft
variables:
network:
Expand Down Expand Up @@ -461,6 +461,14 @@ paths:
summary: getSpamContracts
description: Returns a list of all spam contracts marked by Alchemy.
tags: ['Spam Detection']
servers:
- url: https://{network}.g.alchemy.com/nft
variables:
network:
enum:
- eth-mainnet
- polygon-mainnet
default: eth-mainnet
parameters:
- $ref: '#/components/schemas/apiKey'
x-readme:
Expand Down Expand Up @@ -506,6 +514,14 @@ paths:
summary: isSpamContract
description: Returns whether a contract is marked as spam or not by Alchemy.
tags: ['Spam Detection']
servers:
- url: https://{network}.g.alchemy.com/nft
variables:
network:
enum:
- eth-mainnet
- polygon-mainnet
default: eth-mainnet
parameters:
- $ref: '#/components/schemas/apiKey'
- $ref: '#/components/schemas/contractAddress'
Expand Down Expand Up @@ -604,6 +620,13 @@ paths:
summary: reingestContract
description: Triggers metadata refresh for an entire NFT collection and refreshes stale metadata after a collection reveal/collection changes.
tags: ['NFT Metadata Access']
servers:
- url: https://{network}.g.alchemy.com/nft
variables:
network:
enum:
- eth-mainnet
default: eth-mainnet
parameters:
- $ref: '#/components/schemas/apiKey'
- $ref: '#/components/schemas/contractAddress'
Expand Down Expand Up @@ -665,6 +688,13 @@ paths:
summary: getFloorPrice
description: Returns the floor prices of a NFT collection by marketplace.
tags: ['Sales & Marketplace Data']
servers:
- url: https://{network}.g.alchemy.com/nft
variables:
network:
enum:
- eth-mainnet
default: eth-mainnet
parameters:
- $ref: '#/components/schemas/apiKey'
- $ref: '#/components/schemas/contractAddress'
Expand Down Expand Up @@ -729,6 +759,14 @@ paths:
summary: computeRarity
description: Computes the rarity of each attribute of an NFT.
tags: ['Rarity Data']
servers:
- url: https://{network}.g.alchemy.com/nft
variables:
network:
enum:
- eth-mainnet
- polygon-mainnet
default: eth-mainnet
parameters:
- $ref: '#/components/schemas/apiKey'
- $ref: '#/components/schemas/contractAddress'
Expand Down Expand Up @@ -770,6 +808,13 @@ paths:
summary: searchContractMetadata
description: Search for a keyword across metadata of all ERC-721 and ERC-1155 smart contracts
tags: ['NFT Metadata Access']
servers:
- url: https://{network}.g.alchemy.com/nft
variables:
network:
enum:
- eth-mainnet
default: eth-mainnet
parameters:
- $ref: '#/components/schemas/apiKey'
- $ref: '#/components/schemas/query'
Expand Down Expand Up @@ -799,6 +844,14 @@ paths:
summary: summarizeNFTAttributes
description: Generate a summary of attribute prevalence for an NFT collection.
tags: ['Rarity Data']
servers:
- url: https://{network}.g.alchemy.com/nft
variables:
network:
enum:
- eth-mainnet
- polygon-mainnet
default: eth-mainnet
parameters:
- $ref: '#/components/schemas/apiKey'
- $ref: '#/components/schemas/contractAddress'
Expand Down Expand Up @@ -858,6 +911,15 @@ paths:
summary: getNFTSales
description: Gets NFT sales that have happened through on-chain marketplaces
tags: ['Sales & Marketplace Data']
servers:
- url: https://{network}.g.alchemy.com/nft
variables:
network:
enum:
- eth-mainnet
- polygon-mainnet
- opt-mainnet
default: eth-mainnet
parameters:
- $ref: '#/components/schemas/apiKey'
- $ref: '#/components/schemas/fromBlock'
Expand Down Expand Up @@ -1376,8 +1438,24 @@ paths:
summary: getSpamContracts
description: Returns a list of all spam contracts marked by Alchemy.
tags: ['NFT API V3 Methods (BETA)']
servers:
- url: https://{network}.g.alchemy.com/nft
variables:
network:
enum:
- eth-mainnet
- polygon-mainnet
default: eth-mainnet
parameters:
- $ref: '#/components/schemas/apiKey'
servers:
- url: https://{network}.g.alchemy.com/nft
variables:
network:
enum:
- eth-mainnet
- polygon-mainnet
default: eth-mainnet
x-readme:
samples-languages:
- javascript
Expand All @@ -1404,6 +1482,14 @@ paths:
summary: isSpamContract
description: Returns whether a contract is marked as spam or not by Alchemy.
tags: ['NFT API V3 Methods (BETA)']
servers:
- url: https://{network}.g.alchemy.com/nft
variables:
network:
enum:
- eth-mainnet
- polygon-mainnet
default: eth-mainnet
parameters:
- $ref: '#/components/schemas/apiKey'
- $ref: '#/components/schemas/contractAddress'
Expand Down Expand Up @@ -1462,6 +1548,13 @@ paths:
summary: getFloorPrice
description: Returns the floor prices of a NFT collection by marketplace.
tags: ['NFT API V3 Methods (BETA)']
servers:
- url: https://{network}.g.alchemy.com/nft
variables:
network:
enum:
- eth-mainnet
default: eth-mainnet
parameters:
- $ref: '#/components/schemas/apiKey'
- $ref: '#/components/schemas/contractAddress'
Expand Down Expand Up @@ -1507,6 +1600,14 @@ paths:
summary: computeRarity
description: Computes the rarity of each attribute of an NFT.
tags: ['NFT API V3 Methods (BETA)']
servers:
- url: https://{network}.g.alchemy.com/nft
variables:
network:
enum:
- eth-mainnet
- polygon-mainnet
default: eth-mainnet
parameters:
- $ref: '#/components/schemas/apiKey'
- $ref: '#/components/schemas/contractAddress'
Expand Down Expand Up @@ -1574,6 +1675,14 @@ paths:
summary: summarizeNFTAttributes
description: Generate a summary of attribute prevalence for an NFT collection.
tags: ['NFT API V3 Methods (BETA)']
servers:
- url: https://{network}.g.alchemy.com/nft
variables:
network:
enum:
- eth-mainnet
- polygon-mainnet
default: eth-mainnet
parameters:
- $ref: '#/components/schemas/apiKey'
- $ref: '#/components/schemas/contractAddress'
Expand Down Expand Up @@ -1638,6 +1747,15 @@ paths:
summary: getNFTSales
description: Gets NFT sales that have happened through on-chain marketplaces
tags: ['NFT API V3 Methods (BETA)']
servers:
- url: https://{network}.g.alchemy.com/nft
variables:
network:
enum:
- eth-mainnet
- polygon-mainnet
- opt-mainnet
default: eth-mainnet
parameters:
- $ref: '#/components/schemas/apiKey'
- $ref: '#/components/schemas/fromBlock'
Expand Down

0 comments on commit 2a80b40

Please sign in to comment.