Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solana APIs

This repository provides a collection of APIs for interacting with the Solana blockchain.

Getting Started

To use these APIs, you will need to have a Solana node running. You can find instructions on how to set up a Solana node here.

Once you have a Solana node running, you can install the solana-apis package using npm:

npm install solana-apis
Usage
To use the APIs, you will need to create a new instance of the Solana class:

JavaScript

const { Solana } = require('solana-apis');

const solana = new Solana({
  nodeUrl: 'http://localhost:8899', // Replace with your Solana node URL
});
Once you have created an instance of the Solana class, you can use the various methods to interact with the Solana blockchain. For example, to get the balance of an account, you can use the getBalance method:

JavaScript

const balance = await solana.getBalance('YOUR_ACCOUNT_ADDRESS');

getBalance(address)
getAccountInfo(address)
getProgramAccounts(programId)
sendTransaction(transaction)
For more information on each API, please refer to the Solana documentation.

About

No description, website, or topics provided.

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages