TypeScript SDK Intro
Less than 1 minute
TypeScript SDK
The Nosana TypeScript SDK provides a convenient, typed interface for creating and managing deployments from Node.js or browser environments.
Prerequisites
Before using the SDK, ensure you have:
- API Key: A valid Nosana API key. See the API key guide.
- Credits: Sufficient credits in your Nosana account to run deployments.
- Node.js: A recent LTS version of Node.js is recommended.
Info
If you want to create deployments directly with your Solana wallet, see the TypeScript SDK deployments service.
Installation
Install the SDK from npm:
npm install @nosana/sdkOr with yarn:
yarn add @nosana/sdkYou can find the package on npm at: https://www.npmjs.com/package/@nosana/sdk
Initializing the Client
import { NosanaClient } from '@nosana/sdk';
const client = new NosanaClient({
apiKey: process.env.NOSANA_API_KEY as string,
});