Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ethernauta/sol

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethernauta/sol

This module aims to be an un-opinionated representation of the defined:

  • 0.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

This module aims to be an un-opinionated representation of the defined:

  • Solana base methods

Table of contents

  1. API
  2. core
  3. chain
  4. abi

API

import { createReader, http } from "@ethernauta/transport";
import { getBalance } from "@ethernauta/sol";

const reader = createReader([
  http(
    "https://withered-wider-pool.solana-devnet.quiknode.pro/742e63a8f44b2b9ea78af3feb44e4be930a830a6"
  ),
]);
const readable = getBalance(["5U3bH5b6XtG99aVWLqwVzYPVpQiFHytBD68Rz2eFPZd7"]);
const balance = await readable(reader);

Files to pay attention

core

method

Tests

  • Correctly gets balance of an address Go to file
  • Correctly gets the latest blockhash Go to file
  • Correctly gets minimum balance for rent exemption Go to file

Additional

This is solana-web3's implementation of "getBalance" RPC method vs the implementation of it in this library

FAQs

Package last updated on 30 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc