RapidNode Docs
Back to WebsiteX/Twitter
  • Welcome
    • What is RapidNode?
  • Solana RPC Nodes
    • RapidNode RPCs Overview
    • Dedicated Nodes
      • Getting Started with Dedicated Nodes
    • Dedicated Staked Connections
    • Common Error Codes
  • RPC
    • HTTP
      • getAccountInfo
      • getBalance
      • getBlock
      • getBlockCommitment
      • getBlockHeight
      • getBlockProduction
      • getBlockTime
      • getBlocks
    • Websocket
  • Data Streaming
    • gRPC
    • Webhooks
  • Solana APIs
    • Priority Fee API
    • Enhanced Transaction API
    • Token Metadata API
  • Guides
    • RPC Proxy — Protect Your Keys
    • Sending Transactions on Solana
  • Resources
    • RapidNode Blog
    • SDKs
    • Transaction Types
    • Status Page
Powered by GitBook
On this page
  • Node.js SDK
  • Quick Start
  1. Resources

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);

PreviousRapidNode BlogNextTransaction Types

Last updated 4 months ago