SDKs

SDKs for building the future of Solana

At RapidNode, we've developed a Node.js and a Rust SDK to make developing on Solana easier. The following page includes information on installing and using these SDKs. It also covers common error handling, where to find the latest documentation, and how to contribute to these SDKs. We also outline a list of unofficial community SDKs made by our wonderful community. Note that those SDKs are not officially maintained by our team — only the Node.js and Rust SDKs are.

Node.js SDK

Installation

The RapidNode Node.js SDK can be installed with any of the following package managers:

Package Manager
Command

npm

npm install rapidnode-sdk

pnpm

pnpm install rapidnode-sdk

Yarn

yarn add rapidnode-sdk

Quick Start

Here's a straightforward example of how to use the Node.js SDK to fetch a list of assets owned by a given address:

import { RapidNode } from "rapidnode-sdk";

const rapidnode = new rapidnode("YOUR_API_KEY");
const response = await rapidnode.rpc.getAssetsByOwner({
  ownerAddress: "86xCnPeV69n6t3DnyGvkKobf9FdN2H9oiVDdaMpo2MMY",
  page: 1,
});

console.log(response.items);

Last updated