Token API Quickstart
A new developer’s guide to using the Token API and getting token information. Query Token data using alchemy-web3 (recommended) or fetch.
How to Query the Token API
Fetch
You can easily interact with Alchemy’s Token API using simple fetch requests. No additional dependencies required with Node.js 18+.
Usage
And then paste the following code snippet into the file:
From your command line, you can execute the script with:
You should see output like this:
Usage
token-api-javascript-scripts/fetch-script.js at main · alchemyplatform/token-api-javascript-scripts
and then paste the following code snippet into the file to explore the getNFTs method:=
From your command line, you can execute the script with:
Your output should look like the following:
