Node.js
Learn how to integrate Airstack APIs to your Node.js application using the Airstack Node SDK.
Last updated
Was this helpful?
Learn how to integrate Airstack APIs to your Node.js application using the Airstack Node SDK.
Last updated
Was this helpful?
In this tutorial, you will learn how to start integrating API into your application.
Completed
Git
Node v.16+
Use a package manager to install the Airstack Node SDK into your project:
Create a new .env
file:
If you are using Node version 20.6.0+, then you can simply import the environment variable to you Node.js app. Thus, directly proceed to the next step.
If you are using Node version earlier than 20.6.0, then you need to install the dotenv
package:
and import the package to be able to inject the environment variable to your application:
Once you have initialized the SDK, you can use the fetchQuery
to call the Airstack API.
The data
variable will return and logged into your terminal as follows:
Learn to build more with Airstack using our tutorials:
Resolve Identities
Wallet API Reference
Node SDK Reference
Add the as the environment variable:
You can use init
from the SDK to initialize it with the :
Below you have been provided with Airstack query to fetch the 0x address and Farcaster owned by :
If you have any questions or need help regarding integrating into your application, please join our Airstack's group.