1.0.0 • Published 2 years ago

solana-nft-tool v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

NFT-fetch add-on for Solana

This is a Node express server that queries a Solana wallet address for NFTs and returns a summary of the NFTs tokens found, along with additional information.

See also https://github.com/quiknode-labs/nft_lookup, which is the equivalent for Ethereum.

Dependencies

  • Node 16
  • Yarn

Setting up

  • Install dependencies: yarn install

Run

yarn run dev

This starts the server and watches files for changes. Changes are auto-reloaded when saved, you don't need to restart the server. 😀

Testing

  • Running unit tests: yarn test

Sample API request with cURL:

curl --location --request POST 'http://localhost:4000' \
 --header 'Content-Type: application/json' \
 --data-raw '{ "method": "qn_fetchNFTs", "id": 12, "params": ["WALLET_ADDRESS"] }' | jq