Comments (2)
Hi @S1nPur1ty,
Are you still facing this issue?
I think there has been a mixup due to the renaming of getNFTsForCollection
to getNftsForContract
on alchemy-sdk. That's been mentioned in the docs now.
If you try Alchemy's composer tool getNFTsForCollection function and the curl request getNFTsForCollection:https://docs.alchemy.com/reference/getnftsforcollection without specifying metadata as true
, it will only return the token ids of the specified collection address.
curl --request GET \
--url 'https://eth-mainnet.g.alchemy.com/nft/v2/docs-demo/getNFTsForCollection?contractAddress=0xe785E82358879F061BC3dcAC6f0444462D4b5330&withMetadata=true' \
--header 'accept: application/json'
Whereas with the equivalent alchemy-sdk getNftsForContract
, all the information, including metadata, is returned at the same time.
I hope this answers your issue.
from alchemy-sdk-js.
@thestriver Thanks for answering the question. The SDK has renamed some of the API names, but the next version of the NFT API endpoints will bring the naming conventions back to the same standard. I'm going to close this issue since it's working as intended, but feel free to ask any other questions you may have!
from alchemy-sdk-js.
Related Issues (20)
- Confusing Type Returned for interface NftMetadata HOT 3
- getAssetTransfers returns transfers that never happened HOT 1
- FR: Use ethers v6 HOT 4
- coherent raw metadata typings HOT 1
- Not working with Bun HOT 2
- v3 sdk api getContractMetadata openSeaMetadata types doesn't include bannerImageUrl
- FR: Support JWT Authentication HOT 1
- Network.ARB_SEPOLIA doesnt exist HOT 6
- FR: Use chainIds to select network HOT 2
- Invalid URL error returned for core methods in v3 HOT 3
- Vulnerable Axios Version Used HOT 4
- Support for Edge Runtime HOT 3
- Incorrect type HOT 2
- Missing response error If invoking SDK rpc functions within an AWS lambda HOT 8
- FR: NFT API avalanche support? HOT 1
- getNftsForOwnerIterator return type doesn't change when `omitMetadata = true` HOT 2
- FR: Support New Polygon Testnet Amoy HOT 2
- Cannot read properties of undefined (reading 'safelistRequestStatus') HOT 5
- TypeError: Cannot read properties of undefined (reading 'address') HOT 2
- Error messages not bubbled up to caller when making API calls via the sdk HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alchemy-sdk-js.