File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ git clone git@github.com:alchemyplatform/nft-api-javascript-scripts.git
1414npm install
1515```
1616
17- 3 . Use ` alchemy-web3 ` javascript sdk
17+ 3 . Use ` alchemy-sdk ` javascript sdk
1818
1919```
20- node alchemy-web3 -script.js
20+ node alchemy-sdk -script.js
2121```
2222
23234 . Use ` fetch ` javascript module
@@ -35,4 +35,3 @@ node axios-script.js
35356 . Read docs for more info
3636
3737https://docs.alchemy.com/alchemy/enhanced-apis/nft-api
38-
Original file line number Diff line number Diff line change @@ -18,12 +18,12 @@ const settings = {
1818const alchemy = initializeAlchemy ( settings ) ;
1919
2020// Print owner's wallet address:
21- const ownerAddr = "0xshah .eth" ;
21+ const ownerAddr = "vitalik .eth" ;
2222console . log ( "fetching NFTs for address:" , ownerAddr ) ;
2323console . log ( "..." ) ;
2424
2525// Print total NFT count returned in the response:
26- const nftsForOwner = await getNftsForOwner ( alchemy , "0xshah .eth" ) ;
26+ const nftsForOwner = await getNftsForOwner ( alchemy , "vitalik .eth" ) ;
2727console . log ( "number of NFTs found:" , nftsForOwner . totalCount ) ;
2828console . log ( "..." ) ;
2929
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments